From 4e7f683b61179cf3f93a52f9a163141dbcd8b884 Mon Sep 17 00:00:00 2001 From: fi Date: Sun, 2 Nov 2025 23:00:55 +0100 Subject: [PATCH] Fix nekomesh nginx config --- config/hosts/metrics-nekomesh/nginx.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + ''; }; }; };