1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 12:51: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 = {
file = ../../secrets/meteora-auth.age;
owner = "nginx";
@@ -10,9 +33,12 @@
forceSSL = true;
enableACME = true;
root = "${pkgs.meteora-website}";
locations."/" = {
basicAuthFile = config.age.secrets.meteora-auth.path;
};
locations = {
"/" = {
basicAuthFile = config.age.secrets.meteora-auth.path;
};
}
// publicLocations;
};
};
}