Skip to content

Commit c1c9045

Browse files
author
Thomas Jungblut
committed
add forwarding rules
1 parent 313f84e commit c1c9045

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

files/nginx.conf.tmpl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,46 @@ http {
3333
# we turn a couple of common locations off harcoded
3434

3535
location /healthz {
36+
proxy_pass ##PROXY_PASS##;
37+
proxy_set_header X-Forwarded-Host $host;
38+
# Do not pass Authorization header to destination
39+
proxy_set_header Authorization "";
40+
3641
auth_basic off;
3742
}
3843

3944
location /ping {
45+
proxy_pass ##PROXY_PASS##;
46+
proxy_set_header X-Forwarded-Host $host;
47+
# Do not pass Authorization header to destination
48+
proxy_set_header Authorization "";
4049
auth_basic off;
4150
}
4251

4352
location /metrics {
53+
proxy_pass ##PROXY_PASS##;
54+
proxy_set_header X-Forwarded-Host $host;
55+
# Do not pass Authorization header to destination
56+
proxy_set_header Authorization "";
57+
4458
auth_basic off;
4559
}
4660

4761
location /status {
62+
proxy_pass ##PROXY_PASS##;
63+
proxy_set_header X-Forwarded-Host $host;
64+
# Do not pass Authorization header to destination
65+
proxy_set_header Authorization "";
66+
4867
auth_basic off;
4968
}
5069

5170
location /version {
71+
proxy_pass ##PROXY_PASS##;
72+
proxy_set_header X-Forwarded-Host $host;
73+
# Do not pass Authorization header to destination
74+
proxy_set_header Authorization "";
75+
5276
auth_basic off;
5377
}
5478
}

0 commit comments

Comments
 (0)