1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 21:01:07 +01:00
Files
niveum/systems/ful/meteora.nix
2026-03-21 20:14:53 +01:00

45 lines
824 B
Nix

{
config,
lib,
pkgs,
...
}:
let
publicLocations = builtins.listToAttrs (
map (name: lib.nameValuePair name { }) [
"= /index.html"
"= /veroeffentlichungen.html"
"= /lesungen.html"
"= /kolophon.html"
"= /impressum.html"
"= /credo.html"
"= /"
"= /meteora.css"
"= /favicon.ico"
"/img/"
"/fonts/"
]
);
in
{
age.secrets.meteora-auth = {
file = ../../secrets/meteora-auth.age;
owner = "nginx";
};
services.nginx = {
enable = true;
virtualHosts."meteora.xn--kiern-0qa.de" = {
forceSSL = true;
enableACME = true;
root = "${pkgs.meteora-website}";
locations = {
"/" = {
basicAuthFile = config.age.secrets.meteora-auth.path;
};
}
// publicLocations;
};
};
}