build : 环境区分

This commit is contained in:
clay
2024-03-29 18:10:26 +08:00
parent fa56d63dbb
commit f98103c61f
4 changed files with 100 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ http {
listen [::]:80;
location /api {
proxy_pass http://gateway.mosr.svc.cluster.local:8080;
proxy_pass http://gateway.$PROFILES.svc.cluster.local:8080;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;