Added polr module

This commit is contained in:
Luj 2022-08-14 18:28:19 +02:00
parent 0d0b9592d4
commit 690490282b
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 364 additions and 30 deletions

View file

@ -56,6 +56,22 @@
};
services.polr = {
enable = true;
adminpassFile = "/root/polradminpw";
database = {
createLocally = true;
dbpassFile = "/root/polrdbpw";
};
config = {
address = "link.julienmalka.me";
appkeyFile = "/root/polrappkey";
};
extraConfig = ''
SETTING_PSEUDORANDOM_ENDING=true
'';
};
# make the tailscale command usable to users
environment.systemPackages = [ pkgs.tailscale ];
@ -121,31 +137,6 @@
networking.firewall.allowedTCPPorts = [ 51821 ];
networking.firewall.allowedUDPPorts = [ 51821 ];
services.nginx.virtualHosts."jellyfin.mondon.me" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "https://100.74.49.77";
};
};
services.nginx.virtualHosts."link.julienmalka.me" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "https://100.127.245.71";
};
};
services.nginx.virtualHosts."crypto.saumon.network" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "https://100.127.245.71";
};
};
system.stateVersion = "21.11";