tilburg-hub/nginx.conf
Atlas SHB a402cbaef5 Initial community site — AI HUB Tilburg
Zero-dependency static site. config.json-driven.
Deploy: docker compose up -d
Publish: GitHub Pages / Cloudflare Pages / Tailscale Serve

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 13:37:25 +02:00

25 lines
705 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# serve config.json with correct MIME type + CORS for fetch()
location = /config.json {
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin *;
}
# SPA fallback (not needed for static, but safe to have)
location / {
try_files $uri $uri/ /index.html;
}
# Security headers
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy no-referrer-when-downgrade;
gzip on;
gzip_types text/html text/css application/javascript application/json image/svg+xml;
}