Files
2026-10-23 19:30:08 +03:00

23 lines
558 B
Nginx Configuration File

events {
worker_connections 1024;
}
http {
# Docker DNS-сервер
resolver 127.0.0.11 valid=5s;
server {
listen 80;
location / {
# Используем переменную, чтобы Nginx перезапрашивал DNS
set $api_upstream api:8080;
proxy_pass http://$api_upstream;
proxy_next_upstream error timeout http_502 http_503 http_504;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}