diff --git a/config/hosts/metrics-nekomesh/nginx.nix b/config/hosts/metrics-nekomesh/nginx.nix index 885fc05..ffbfe98 100644 --- a/config/hosts/metrics-nekomesh/nginx.nix +++ b/config/hosts/metrics-nekomesh/nginx.nix @@ -13,14 +13,19 @@ } { addr = "0.0.0.0"; - port = 443; + port = 8443; ssl = true; + extraParameters = [ "proxy_protocol" ]; } ]; locations."/" = { proxyPass = "http://unix:/run/anubis/anubis-nekomesh.sock"; proxyWebsockets = true; }; + extraConfig = '' + set_real_ip_from 10.202.41.100; + real_ip_header proxy_protocol; + ''; }; }; };