mirror of
http://nostr-git-proxy.forgejo.svc.cluster.local/git/45387ca441053e230b2126802005eb03767ab59d84555e8bac86b6e7def14e27/bestdadjokes
synced 2026-11-03 07:26:59 +00:00
chore: add HTTP security headers (HSTS, X-Frame-Options, Permissions-Policy)
This commit is contained in:
parent
21a8f9e294
commit
94fd248233
1 changed files with 3 additions and 0 deletions
|
|
@ -15,8 +15,11 @@ http {
|
|||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
error_page 404 /404.html;
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header Referrer-Policy strict-origin-when-cross-origin always;
|
||||
add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;
|
||||
location ~* \.(css|js|svg|png|jpg|ico|woff2?)$ {
|
||||
expires 7d;
|
||||
add_header Cache-Control "public";
|
||||
|
|
|
|||
Loading…
Reference in a new issue