1
Fork 0

Set up diptime and provision invidious hmac key

This commit is contained in:
prescientmoon 2024-03-11 16:08:32 +01:00
parent d7db3abaae
commit 1edf1e65b5
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
6 changed files with 42 additions and 12 deletions
modules/nixos

View file

@ -4,10 +4,22 @@
description = "Helper function for generating a quick proxy config";
};
options.satellite.static = lib.mkOption {
type = lib.types.functionTo (lib.types.functionTo lib.types.anything);
description = "Helper function for generating a quick file serving config";
};
config.satellite.proxy = port: extra: {
enableACME = true;
acmeRoot = null;
forceSSL = true;
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; } // extra;
};
config.satellite.static = root: {
inherit root;
enableACME = true;
acmeRoot = null;
forceSSL = true;
};
}