27 lines
605 B
Nginx Configuration File
27 lines
605 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location = /healthz {
|
|
access_log off;
|
|
default_type text/plain;
|
|
return 200 "ok\n";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ~* \.(?:css|js|json|txt)$ {
|
|
expires 5m;
|
|
add_header Cache-Control "public, max-age=300";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
add_header X-Content-Type-Options nosniff always;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
|
add_header X-Frame-Options DENY always;
|
|
}
|