init wiki.euer as application server
This commit is contained in:
parent
6260181b77
commit
6ab6f0f172
22
2configs/deployment/wiki.euer.nix
Normal file
22
2configs/deployment/wiki.euer.nix
Normal 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)";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue