We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcf3d9 commit 1cbbc4dCopy full SHA for 1cbbc4d
1 file changed
nginx/default.conf
@@ -2,8 +2,6 @@ server {
2
listen 8080;
3
server_name localhost;
4
5
- #access_log /var/log/nginx/host.access.log main;
6
-
7
location / {
8
root /usr/share/nginx/html;
9
try_files $uri $uri/ /index.html =404;
@@ -17,4 +15,8 @@ server {
17
15
location = /50x.html {
18
16
19
}
20
-}
+ autoindex off;
+ server_tokens off;
+ add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.gstatic.com;";
21
+ add_header X-Content-Type-Options nosniff;
22
+}
0 commit comments