Files
HexaWetter/nginx.conf.template
TheOnlyMace 5a08d4c4ac
All checks were successful
CI / api-check (push) Successful in 20s
CI / frontend-check (push) Successful in 6s
HexaWetter v1.2.0: Security, Admin, Radar, UI
2026-06-18 23:59:08 +02:00

26 lines
628 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
error_page 502 503 504 /502.html;
location /api/ {
proxy_pass http://api:8080/api/;
proxy_http_version 1.1;
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_set_header X-API-Key ${API_KEY};
proxy_connect_timeout 10s;
proxy_read_timeout 120s;
}
location / {
try_files $uri $uri/ /index.html;
}
}