Files
forwarder/admin-ui/nginx.conf
1sonhador 87b1ad4b8a feat: sync UI controls, message retry, and worker schedule guard
Add manual sync buttons with batch limit, nginx timeouts for long syncs,
message retry endpoint, and fix worker to skip disabled accounts and
refresh schedules from the database every 2 minutes.
2026-07-01 09:10:04 +01:00

26 lines
762 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 300s;
proxy_connect_timeout 10s;
proxy_send_timeout 300s;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}