add location validation google

This commit is contained in:
Valentin CZERYBA 2023-02-06 23:02:40 +01:00
parent 3dff2b0975
commit 9041206f14

View File

@ -1,7 +1,7 @@
server {
#gzip_static off;
access_log /var/log/nginx/clarissa_access.log main;
error_log /var/log/nginx/clarissa_error.log;
#gzip_static off;
server_name clarissariviere.com clarissariviere.fr www.clarissariviere.fr www.clarissariviere.com;
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
proxy_cache STATIC;
@ -25,17 +25,23 @@ server {
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
sub_filter 'gouters.canalblog.com' "$host";
sub_filter_types text/html text/css text/xml text/plain;
sub_filter_types text/html text/xml text/plain text/css;
sub_filter_once off;
}
location /googlebbc3cfa6d1866691.html {
root /var/www/gouter/;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/clarissariviere.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/clarissariviere.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
@ -63,5 +69,4 @@ server {
listen 80;
return 404; # managed by Certbot
}