Files
light-toir-v2/nginx/nginx.conf

23 lines
617 B
Nginx Configuration File

resolver 127.0.0.11 valid=10s;
server {
listen 80;
server_name light-toir-v2.greact.ru;
location /api/ {
set $backend http://light-toir-v2-backend:3000;
proxy_pass $backend/;
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;
}
location / {
set $frontend http://light-toir-v2-frontend:80;
proxy_pass $frontend/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}