This commit is contained in:
2026-10-23 19:30:08 +03:00
parent 0ab3a341aa
commit 7e0595d211
26 changed files with 1237 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
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;
}
}
}