|
|
|
|
339
|
function_check nginx_ssl
|
339
|
function_check nginx_ssl
|
340
|
nginx_ssl "$FEDWIKI_DOMAIN_NAME" mobile
|
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
|
{ echo ' add_header X-Robots-Tag none;';
|
342
|
{ echo ' add_header X-Robots-Tag none;';
|
349
|
echo ' add_header X-Download-Options noopen;';
|
343
|
echo ' add_header X-Download-Options noopen;';
|
350
|
echo ' add_header X-Frame-Options DENY;';
|
344
|
echo ' add_header X-Frame-Options DENY;';
|
|
|
|
|
371
|
echo " listen 127.0.0.1:$FEDWIKI_ONION_PORT default_server;";
|
365
|
echo " listen 127.0.0.1:$FEDWIKI_ONION_PORT default_server;";
|
372
|
echo " server_name $FEDWIKI_ONION_HOSTNAME;";
|
366
|
echo " server_name $FEDWIKI_ONION_HOSTNAME;";
|
373
|
echo '';
|
367
|
echo '';
|
374
|
- echo ' add_header X-Robots-Tag none;';
|
|
|
375
|
- echo ' add_header X-Download-Options noopen;';
|
|
|
376
|
echo ' add_header X-Frame-Options DENY;';
|
368
|
echo ' add_header X-Frame-Options DENY;';
|
377
|
echo ' add_header X-Content-Type-Options nosniff;';
|
369
|
echo ' add_header X-Content-Type-Options nosniff;';
|
378
|
echo '';
|
370
|
echo '';
|
|
|
|
|
389
|
echo ' }';
|
381
|
echo ' }';
|
390
|
echo '}'; } >> "$fedwiki_nginx_file"
|
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
|
function_check create_site_certificate
|
390
|
function_check create_site_certificate
|
393
|
create_site_certificate "$FEDWIKI_DOMAIN_NAME" 'yes'
|
391
|
create_site_certificate "$FEDWIKI_DOMAIN_NAME" 'yes'
|
394
|
|
392
|
|