Browse Source
Merge pull request #633 from doccano/feature/security-enhancement
Update nginx.conf to enhance security
pull/640/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
nginx/nginx.conf
|
@ -3,6 +3,8 @@ server { |
|
|
charset utf-8; |
|
|
charset utf-8; |
|
|
|
|
|
|
|
|
add_header X-Frame-Options DENY; |
|
|
add_header X-Frame-Options DENY; |
|
|
|
|
|
add_header X-Content-Type-Options nosniff; |
|
|
|
|
|
add_header X-XSS-Protection "1; mode=block"; |
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
root /var/www/html; |
|
|
root /var/www/html; |
|
|