Move removals to the end to cover entire file
This commit is contained in:
parent
eec34f4740
commit
a7cdc5e7bf
|
@ -339,12 +339,6 @@ function fedwiki_setup_web {
|
||||||
function_check nginx_ssl
|
function_check nginx_ssl
|
||||||
nginx_ssl "$FEDWIKI_DOMAIN_NAME" mobile
|
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;';
|
{ echo ' add_header X-Robots-Tag none;';
|
||||||
echo ' add_header X-Download-Options noopen;';
|
echo ' add_header X-Download-Options noopen;';
|
||||||
echo ' add_header X-Frame-Options DENY;';
|
echo ' add_header X-Frame-Options DENY;';
|
||||||
|
@ -371,8 +365,6 @@ function fedwiki_setup_web {
|
||||||
echo " listen 127.0.0.1:$FEDWIKI_ONION_PORT default_server;";
|
echo " listen 127.0.0.1:$FEDWIKI_ONION_PORT default_server;";
|
||||||
echo " server_name $FEDWIKI_ONION_HOSTNAME;";
|
echo " server_name $FEDWIKI_ONION_HOSTNAME;";
|
||||||
echo '';
|
echo '';
|
||||||
echo ' add_header X-Robots-Tag none;';
|
|
||||||
echo ' add_header X-Download-Options noopen;';
|
|
||||||
echo ' add_header X-Frame-Options DENY;';
|
echo ' add_header X-Frame-Options DENY;';
|
||||||
echo ' add_header X-Content-Type-Options nosniff;';
|
echo ' add_header X-Content-Type-Options nosniff;';
|
||||||
echo '';
|
echo '';
|
||||||
|
@ -389,6 +381,12 @@ function fedwiki_setup_web {
|
||||||
echo ' }';
|
echo ' }';
|
||||||
echo '}'; } >> "$fedwiki_nginx_file"
|
echo '}'; } >> "$fedwiki_nginx_file"
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
function_check create_site_certificate
|
function_check create_site_certificate
|
||||||
create_site_certificate "$FEDWIKI_DOMAIN_NAME" 'yes'
|
create_site_certificate "$FEDWIKI_DOMAIN_NAME" 'yes'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue