Forráskód Böngészése

Added Some Security headers to NGINX conf

Yoginth 7 éve
szülő
commit
776951d81d
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      script/conf/gitote

+ 5 - 0
script/conf/gitote

@@ -5,6 +5,11 @@ server {
     server_name 127.0.0.1;
 
     proxy_set_header X-Real-IP  $remote_addr; # pass on real client IP
+    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
+    add_header X-Frame-Options SAMEORIGIN;
+    add_header X-XSS-Protection "1; mode=block";
+    add_header X-Content-Type-Options nosniff;
+    add_header Referrer-Policy "no-referrer";
 
     location / {
         proxy_pass http://localhost:8080;