forward headers
This commit is contained in:
1 parent
67c9eabd65
commit
fd20949d48
2 files changed
+9
No files matched your search
@@ -81,6 +81,14 @@
|
|||||||
locations."/" = {
|
locations."/" = {
|
||||||
# Default k3s port?
|
# Default k3s port?
|
||||||
proxyPass = "http://127.0.0.1:30080";
|
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;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -86,6 +86,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This deploys to the k3s cluster declared below
|
||||||
services.nimh-static = {
|
services.nimh-static = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user