There was an error while loading. Please reload this page.
1 parent 8521787 commit fb10a67Copy full SHA for fb10a67
nginx/conf.d/default.conf
@@ -1,3 +1,9 @@
1
+add_header X-XSS-Protection "1; mode=block";
2
+add_header X-Frame-Options "SAMEORIGIN";
3
+add_header X-Content-Type-Options nosniff;
4
+add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
5
+add_header 'Referrer-Policy' 'no-referrer-when-downgrade';
6
+
7
server {
8
listen 80;
9
listen [::]:80;
@@ -23,4 +29,9 @@ server {
23
29
proxy_set_header X-Forwarded-Proto https;
24
30
proxy_pass http://ghost:2368;
25
31
}
32
+ if ($request_method !~ ^(GET|HEAD|POST)$ )
33
+ {
34
+ return 405;
35
+ }
36
26
37
0 commit comments