完善配置

This commit is contained in:
2023-08-12 16:55:17 +08:00
parent a39ced6e5c
commit e3310e0c72
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ data:
location / { location / {
proxy_pass http://coal-ui:7456/; proxy_pass http://coal-ui:7456/;
} }
location /api { location /api/ {
proxy_set_header X-Forwarded-Prefix '/api'; proxy_set_header X-Forwarded-Prefix '/api';
proxy_pass http://coal-api:7456/; proxy_pass http://coal-api:7456/;

View File

@@ -49,7 +49,7 @@ patchesStrategicMerge:
location / { location / {
proxy_pass http://coal-api.coal-master.svc.cluster.local:7456/; proxy_pass http://coal-api.coal-master.svc.cluster.local:7456/;
} }
location /api { location /api/ {
proxy_set_header X-Forwarded-Prefix '/api'; proxy_set_header X-Forwarded-Prefix '/api';
proxy_pass http://coal-api.coal-master.svc.cluster.local:7456/; proxy_pass http://coal-api.coal-master.svc.cluster.local:7456/;