init wiki.euer as application server

This commit is contained in:
makefu 2024-06-07 23:38:13 +02:00
parent 6260181b77
commit 6ab6f0f172
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -0,0 +1,22 @@
{ config,...}:
let
port = 14322;
fqdn = "wiki.euer.krebsco.de";
in {
services.nginx.virtualHosts."${fqdn}" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:${toString port}";
};
sops.secrets.tiddlywiki-creds = { };
systemd.services.tiddlywiki.serviceConfig.LoadCredential= "creds:${config.sops.secrets.tiddlywiki-creds}";
services.tiddlywiki = {
enable = true;
listenOptions = {
inherit port;
credentials = "$CREDENTIALS_DIRECTORY/creds";
readers = "(anon)";
};
};
}