send X-Robots-Tag on errors too

This commit is contained in:
Daniel Micay 2022-08-18 18:11:08 -04:00
parent e7885e1b87
commit 913cde9ff2

View File

@ -123,7 +123,7 @@ http {
add_header Content-Security-Policy "font-src 'none'; manifest-src 'none'; object-src 'none'; script-src 'none'; style-src 'none'; frame-ancestors 'none'; block-all-mixed-content" always;
# obsolete and replaced with Content-Security-Policy frame-ancestors 'none'
add_header X-Frame-Options "DENY" always;
add_header X-Robots-Tag "none";
add_header X-Robots-Tag "none" always;
proxy_pass http://backend;
proxy_set_header X-Forwarded-For $remote_addr;
@ -154,7 +154,7 @@ http {
add_header Content-Security-Policy "font-src 'self'; manifest-src 'self'; object-src 'none'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; block-all-mixed-content" always;
# obsolete and replaced with Content-Security-Policy frame-ancestors 'self'
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Robots-Tag "none";
add_header X-Robots-Tag "none" always;
location ^~ /.well-known/acme-challenge/ {
root /srv/certbot;