forward headers

This commit is contained in:
2026-05-31 23:26:46 -05:00
parent 67c9eabd65
commit fd20949d48
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -81,6 +81,14 @@
locations."/" = {
# Default k3s port?
proxyPass = "http://127.0.0.1:30080";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};
};
+1
View File
@@ -86,6 +86,7 @@
};
};
# This deploys to the k3s cluster declared below
services.nimh-static = {
enable = true;