nginx
Some checks failed
Deploy frontend test / deploy (push) Failing after 2m35s

This commit is contained in:
vallyenfail
2026-01-19 22:18:32 +03:00
parent 3a1a0dd022
commit 524b4ad4f3

View File

@@ -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;