|
@@ -339,12 +339,6 @@ function fedwiki_setup_web {
|
339
|
339
|
function_check nginx_ssl
|
340
|
340
|
nginx_ssl "$FEDWIKI_DOMAIN_NAME" mobile
|
341
|
341
|
|
342
|
|
- sed -i '/Content-Security-Policy/d' "$fedwiki_nginx_file"
|
343
|
|
- sed -i '/X-XSS-Protection/d' "$fedwiki_nginx_file"
|
344
|
|
- sed -i '/X-Robots-Tag/d' "$fedwiki_nginx_file"
|
345
|
|
- sed -i '/X-Download-Options/d' "$fedwiki_nginx_file"
|
346
|
|
- sed -i '/X-Permitted-Cross-Domain-Policies/d' "$fedwiki_nginx_file"
|
347
|
|
-
|
348
|
342
|
{ echo ' add_header X-Robots-Tag none;';
|
349
|
343
|
echo ' add_header X-Download-Options noopen;';
|
350
|
344
|
echo ' add_header X-Frame-Options DENY;';
|
|
@@ -371,8 +365,6 @@ function fedwiki_setup_web {
|
371
|
365
|
echo " listen 127.0.0.1:$FEDWIKI_ONION_PORT default_server;";
|
372
|
366
|
echo " server_name $FEDWIKI_ONION_HOSTNAME;";
|
373
|
367
|
echo '';
|
374
|
|
- echo ' add_header X-Robots-Tag none;';
|
375
|
|
- echo ' add_header X-Download-Options noopen;';
|
376
|
368
|
echo ' add_header X-Frame-Options DENY;';
|
377
|
369
|
echo ' add_header X-Content-Type-Options nosniff;';
|
378
|
370
|
echo '';
|
|
@@ -389,6 +381,12 @@ function fedwiki_setup_web {
|
389
|
381
|
echo ' }';
|
390
|
382
|
echo '}'; } >> "$fedwiki_nginx_file"
|
391
|
383
|
|
|
384
|
+ sed -i '/Content-Security-Policy/d' "$fedwiki_nginx_file"
|
|
385
|
+ sed -i '/X-XSS-Protection/d' "$fedwiki_nginx_file"
|
|
386
|
+ sed -i '/X-Robots-Tag/d' "$fedwiki_nginx_file"
|
|
387
|
+ sed -i '/X-Download-Options/d' "$fedwiki_nginx_file"
|
|
388
|
+ sed -i '/X-Permitted-Cross-Domain-Policies/d' "$fedwiki_nginx_file"
|
|
389
|
+
|
392
|
390
|
function_check create_site_certificate
|
393
|
391
|
create_site_certificate "$FEDWIKI_DOMAIN_NAME" 'yes'
|
394
|
392
|
|