38 lines
810 B
Nginx Configuration File
38 lines
810 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-Frame-Options "DENY" always;
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
|
|
location = / {
|
|
return 301 /privacy-policy/;
|
|
}
|
|
|
|
location /privacy-policy/ {
|
|
try_files $uri $uri/ /privacy-policy/index.html;
|
|
}
|
|
|
|
location ~* \.(?:css|js|mjs|json|txt|xml|svg|ico|png|jpg|jpeg|webp)$ {
|
|
expires 7d;
|
|
add_header Cache-Control "public, max-age=604800, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location ~* \.html$ {
|
|
expires -1;
|
|
add_header Cache-Control "no-cache";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri =404;
|
|
}
|
|
}
|