Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added nginx headers

Blue Mousea95f98264396
diff --git a/deployment/default.conf b/deployment/default.conf
index 21b845cf1..018a091af 100644
--- a/deployment/default.conf
+++ b/deployment/default.conf
@@ -1,17 +1,17 @@
server {
- listen 80;
- # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
- # add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'; connect-src * https: wss:; font-src *; img-src * data:; script-src * 'unsafe-inline';style-src * 'unsafe-inline'; frame-src *; media-src *;";
- # add_header X-XSS-Protection "1; mode=block";
- # add_header X-Frame-Options "SAMEORIGIN";
- # add_header X-Content-Type-Options "nosniff";
- # add_header Referrer-Policy "no-referrer";
- # add_header Permissions-Policy "sync-xhr=(),microphone=(),camera=(),fullscreen=(self),payment=()";
+ listen 80
+ add_header Cross-Origin-Embedder-Policy "require-corp; report-to='default'"
+ add_header Cross-Origin-Opener-Policy "same-site; report-to='default'"
+ add_header Cross-Origin-Resource-Policy "same-site"
+ add_header Permissions-Policy "interest-cohort=()"
+ add_header Referrer-Policy "strict-origin-when-cross-origin"
+ add_header X-Frame-Options "DENY"
+ add_header X-Powered-By "Mountain Dew"
+ add_header X-XSS-Protection "0; mode=block"
location / {
- root /usr/share/nginx/html;
- index index.html index.htm;
- try_files $uri $uri/ /index.html =404;
+ root /usr/share/nginx/html
+ index index.html index.htm
+ try_files $uri $uri/ /index.html =404
}
-
-}
\ No newline at end of file
+}