Files
traberph 8f8c662e5e
Build image / build (push) Successful in 34s
update branding and ci
2026-09-26 12:02:12 +02:00

38 lines
879 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
charset utf-8;
gzip on;
gzip_comp_level 6;
gzip_types text/css text/csv application/javascript application/json;
auth_basic "Interval Viz";
auth_basic_user_file /etc/nginx/.htpasswd;
location / {
try_files $uri $uri/ =404;
include /etc/nginx/security-headers.conf;
}
# data/ is listed as JSON so the UI can discover the CSV files
location /data/ {
autoindex on;
autoindex_format json;
default_type text/csv;
include /etc/nginx/security-headers.conf;
}
# unauthenticated liveness probe for the container healthcheck
location = /healthz {
auth_basic off;
access_log off;
default_type text/plain;
return 200 "ok\n";
}
}