fixing proxy for http

This commit is contained in:
talksik
2023-08-14 13:38:13 -07:00
parent 088fa0676b
commit b41a9cc3c9
+16 -2
View File
@@ -14,12 +14,26 @@ http {
server {
listen 5000;
proxy_pass localhost:5001;
location / {
proxy_pass http://localhost:5001;
proxy_set_header 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;
}
}
server {
listen 80;
proxy_pass localhost:33360; # TODO: change to NodePort of helloworld within kubernetes
location / {
proxy_pass http://localhost:33360; # TODO: change to NodePort of helloworld within kubernetes
proxy_set_header 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;
}
}
}