Files
2026-10-02 10:25:17 -04:00

38 lines
721 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /api/status {
proxy_pass http://status-api:8080/status;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 2s;
proxy_read_timeout 4s;
add_header Cache-Control "no-store, max-age=0" always;
}
location / {
try_files $uri $uri/ =404;
}
location ^~ /.git/ {
return 404;
}
location = /.woodpecker.yml {
return 404;
}
location ^~ /status-api/ {
return 404;
}
location = /nginx.conf {
return 404;
}
}