Files
forwarder/admin-ui/nginx.conf
T
1sonhador f6b276511a fix(connection): fail-fast IMAP/SMTP tests; add Gitea webhook autodeploy
Connection tests use 5s timeouts and run IMAP/SMTP in parallel so the UI
gets a clear error instead of nginx 504. Add deploy-hook service (:9090) and
deploy-pull.sh for push-to-main deploys on CT 243.
2026-07-01 01:09:53 +01:00

26 lines
759 B
Nginx Configuration File

server {
listen 80;
server_name _;
# Use Docker's embedded DNS so upstream names are re-resolved dynamically.
# Using a variable in proxy_pass forces nginx to use this resolver on each request.
resolver 127.0.0.11 valid=5s;
location /api/ {
set $api_upstream api;
proxy_pass http://$api_upstream:8000;
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;
proxy_read_timeout 15s;
proxy_connect_timeout 5s;
proxy_send_timeout 15s;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}