This commit is contained in:
@@ -4,9 +4,17 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# ===== Тестовое окружение: проксирование на Gateway =====
|
||||
location /api/v1/ {
|
||||
proxy_pass https://back.test-1xc5f.techease.ru/api/v1/;
|
||||
# ===== Тестовое окружение: Gateway endpoints без /api/v1 префикса =====
|
||||
location ~ ^/(login|logout|register|refresh|validate|health|health/live|health/ready)$ {
|
||||
proxy_pass https://back.test-1xc5f.techease.ru/api/v1$request_uri;
|
||||
proxy_set_header Host back.test-1xc5f.techease.ru;
|
||||
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;
|
||||
}
|
||||
|
||||
location ~ ^/(user|request|invite|suppliers)(/.*)?$ {
|
||||
proxy_pass https://back.test-1xc5f.techease.ru/api/v1$request_uri;
|
||||
proxy_set_header Host back.test-1xc5f.techease.ru;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user