Browse Source

Remove some existing nginx options #69

Bob Mottram 7 years ago
parent
commit
08308b0211
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-app-fedwiki

+ 6
- 0
src/freedombone-app-fedwiki View File

313
         function_check nginx_ssl
313
         function_check nginx_ssl
314
         nginx_ssl $FEDWIKI_DOMAIN_NAME mobile
314
         nginx_ssl $FEDWIKI_DOMAIN_NAME mobile
315
 
315
 
316
+        sed -i '/Content-Security-Policy/d' $fedwiki_nginx_file
317
+        sed -i '/X-XSS-Protection/d' $fedwiki_nginx_file
318
+        sed -i '/X-Robots-Tag/d' $fedwiki_nginx_file
319
+        sed -i '/X-Download-Options/d' $fedwiki_nginx_file
320
+        sed -i '/X-Permitted-Cross-Domain-Policies/d' $fedwiki_nginx_file
321
+
316
         echo '  add_header X-Robots-Tag none;' >> $fedwiki_nginx_file
322
         echo '  add_header X-Robots-Tag none;' >> $fedwiki_nginx_file
317
         echo '  add_header X-Download-Options noopen;' >> $fedwiki_nginx_file
323
         echo '  add_header X-Download-Options noopen;' >> $fedwiki_nginx_file
318
         echo '  add_header X-Frame-Options DENY;' >> $fedwiki_nginx_file
324
         echo '  add_header X-Frame-Options DENY;' >> $fedwiki_nginx_file