1
0
mirror of https://github.com/kmein/niveum synced 2026-03-24 05:31:08 +01:00

meteora: whitelist

This commit is contained in:
2026-03-21 14:57:06 +01:00
parent 6bceb298ad
commit ce2ec87583

View File

@@ -1,4 +1,27 @@
{ config, pkgs, ... }: { {
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 = { age.secrets.meteora-auth = {
file = ../../secrets/meteora-auth.age; file = ../../secrets/meteora-auth.age;
owner = "nginx"; owner = "nginx";
@@ -10,9 +33,12 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "${pkgs.meteora-website}"; root = "${pkgs.meteora-website}";
locations."/" = { locations = {
basicAuthFile = config.age.secrets.meteora-auth.path; "/" = {
}; basicAuthFile = config.age.secrets.meteora-auth.path;
};
}
// publicLocations;
}; };
}; };
} }