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

45 lines
824 B
Nix
Raw Normal View History

2026-03-21 14:57:06 +01:00
{
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
{
2026-03-04 17:58:50 +01:00
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}";
2026-03-21 14:57:06 +01:00
locations = {
"/" = {
basicAuthFile = config.age.secrets.meteora-auth.path;
};
}
// publicLocations;
2026-03-04 17:58:50 +01:00
};
};
}