1
0
Fork 0
forked from pub-solar/infra
infra/hosts/nachtigall/apps/libreddit.nix
2023-11-15 13:31:05 +01:00

27 lines
449 B
Nix

{
config,
lib,
pkgs,
self,
...
}: {
services.nginx.virtualHosts."libreddit.pub.solar" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyWebsockets = true;
extraConfig = ''
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
'';
};
};
services.libreddit = {
enable = true;
openFirewall = false;
address = "127.0.0.1";
port = "8082";
};
}