20 lines
561 B
Plaintext
20 lines
561 B
Plaintext
# NK Admin: a single-page web app. Unknown paths load index.html so deep links work.
|
|
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
# Built files have content hashes or change rarely; cache them.
|
|
location ~* \.(js|wasm|css|png|jpg|svg|ttf|otf|woff2?)$ {
|
|
expires 7d;
|
|
}
|
|
|
|
add_header X-Frame-Options DENY always;
|
|
add_header X-Content-Type-Options nosniff always;
|
|
add_header Referrer-Policy same-origin always;
|
|
}
|