add missed file
All checks were successful
CD / build-and-push (push) Successful in 6s
CD / deploy (push) Successful in 15s

This commit is contained in:
RM
2026-10-15 02:02:05 +03:00
parent 7ad5361a61
commit 7438e2b57a

View File

@@ -0,0 +1,30 @@
server {
listen 80;
# API бэкенда. Хост задается переменной BACKEND_HOST:
# в нашем docker-compose.yaml это client-backend (дефолт в Dockerfile),
# в кастомных файлах переопределите через environment.
location /api/ {
proxy_pass http://${BACKEND_HOST}:8181;
proxy_set_header Host $host;
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;
}
# Swagger UI бэкенда (удобно на первое время, потом можно закрыть)
location /swagger-ui/ {
proxy_pass http://${BACKEND_HOST}:8181;
proxy_set_header Host $host;
}
location /v3/api-docs {
proxy_pass http://${BACKEND_HOST}:8181;
proxy_set_header Host $host;
}
# Статика React SPA
location / {
root /usr/share/nginx/html;
try_files $uri /index.html;
}
}