Remove some existing nginx options #69
This commit is contained in:
parent
bd3627a14a
commit
08308b0211
|
@ -313,6 +313,12 @@ function fedwiki_setup_web {
|
|||
function_check nginx_ssl
|
||||
nginx_ssl $FEDWIKI_DOMAIN_NAME mobile
|
||||
|
||||
sed -i '/Content-Security-Policy/d' $fedwiki_nginx_file
|
||||
sed -i '/X-XSS-Protection/d' $fedwiki_nginx_file
|
||||
sed -i '/X-Robots-Tag/d' $fedwiki_nginx_file
|
||||
sed -i '/X-Download-Options/d' $fedwiki_nginx_file
|
||||
sed -i '/X-Permitted-Cross-Domain-Policies/d' $fedwiki_nginx_file
|
||||
|
||||
echo ' add_header X-Robots-Tag none;' >> $fedwiki_nginx_file
|
||||
echo ' add_header X-Download-Options noopen;' >> $fedwiki_nginx_file
|
||||
echo ' add_header X-Frame-Options DENY;' >> $fedwiki_nginx_file
|
||||
|
|
Loading…
Reference in New Issue