infra/hosts/nachtigall/apps/libreddit.nix
Benjamin Bädorf b867dd8578
Some checks failed
Flake checks / Check (push) Failing after 2m11s
feat: libreddit
2023-11-15 13:31:05 +01:00

28 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";
};
}