Compare commits
2 commits
4feb39dfe3
...
719d745bcb
| Author | SHA1 | Date | |
|---|---|---|---|
| 719d745bcb | |||
| 5196e1e0f6 |
2 changed files with 27 additions and 25 deletions
|
|
@ -127,6 +127,8 @@ spec:
|
||||||
value: "${PROD_BACKEND_PORT}"
|
value: "${PROD_BACKEND_PORT}"
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: "${PROD_FRONTEND_PORT}"
|
value: "${PROD_FRONTEND_PORT}"
|
||||||
|
- name: HOST
|
||||||
|
value: "0.0.0.0"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: ${PROD_FRONTEND_PORT}
|
- containerPort: ${PROD_FRONTEND_PORT}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
|
||||||
|
|
@ -17,33 +17,33 @@ http {
|
||||||
|
|
||||||
# public HTTP entrypoint (host will terminate TLS and proxy here)
|
# public HTTP entrypoint (host will terminate TLS and proxy here)
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
|
|
||||||
# exact-match: wins over everything else in this server
|
# exact-match: wins over everything else in this server
|
||||||
location = /healthz {
|
location = /healthz {
|
||||||
access_log off;
|
access_log off;
|
||||||
add_header Content-Type text/plain;
|
add_header Content-Type text/plain;
|
||||||
return 200 "ok\n";
|
return 200 "ok\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
# frontend default
|
# frontend default
|
||||||
location / {
|
location / {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
proxy_pass http://127.0.0.1:${PROD_FRONTEND_PORT};
|
proxy_pass http://127.0.0.1:${PROD_FRONTEND_PORT};
|
||||||
}
|
}
|
||||||
|
|
||||||
# backend API
|
# backend API
|
||||||
location /api/ {
|
# location /api/ {
|
||||||
proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Connection "";
|
# proxy_set_header Connection "";
|
||||||
proxy_pass http://127.0.0.1:${PROD_BACKEND_PORT}/;
|
# proxy_pass http://127.0.0.1:${PROD_BACKEND_PORT}/;
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue