nixos/systems/ttrss/default.nix
Andreas Zweili 5b52e6cc01 Remove listen parameter from rss-bridge nginx config
This was only necessary because it was running behind haproxy before.
2022-11-09 19:12:36 +01:00

29 lines
802 B
Nix

{ custom, hostname }: { pkgs, ... }:
let
domain = "ttrss.2li.ch";
in
{
imports = [
(import "${custom.inputs.self}/systems/raspi4" {
ip = "10.7.89.115";
inherit custom hostname;
})
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
(import "${custom.inputs.self}/modules/nginx-proxy" { inherit custom domain; })
"${custom.inputs.self}/modules/rss-bridge"
(import "${custom.inputs.self}/modules/ttrss-postgres" { inherit custom domain; })
];
services.nginx = {
virtualHosts = {
"rss-bridge.2li.ch" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8082";
proxyWebsockets = true; # needed if you need to use WebSocket
};
};
};
};
}