job-scraper/nginx.conf

25 lines
541 B
Nginx Configuration File
Raw Permalink Normal View History

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
# Serve dashboard.html as the index
location / {
try_files /dashboard.html =404;
}
# Cache static assets
location ~* \.(html|css|js)$ {
expires 5m;
add_header Cache-Control "public, no-transform";
}
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
# Gzip
gzip on;
gzip_types text/html text/css application/javascript;
}