84 lines
2.8 KiB
Plaintext
Raw Normal View History

2022-12-20 00:04:33 +01:00
server {
2023-01-21 18:32:20 +01:00
access_log /var/log/nginx/clarissa_access.log main;
2023-01-17 22:41:39 +01:00
error_log /var/log/nginx/clarissa_error.log;
2023-02-06 23:02:40 +01:00
#gzip_static off;
2023-01-02 17:57:54 +01:00
server_name clarissariviere.com clarissariviere.fr www.clarissariviere.fr www.clarissariviere.com;
2022-12-20 00:04:33 +01:00
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
2023-02-28 11:03:42 +01:00
add_header Link "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
proxy_cache STATIC;
2022-12-20 00:04:33 +01:00
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
proxy_set_header Accept-Encoding "";
proxy_pass http://gouters.canalblog.com/;
2023-02-15 22:25:05 +01:00
#add_header Link "<https://www.clarissariviere.com; rel=\"canonical\">";
2022-12-20 00:04:33 +01:00
#proxy_redirect off;
#proxy_set_header Host $host;
#proxy_buffering on;
#proxy_cache STATIC;
proxy_cache_key $scheme://$host$uri$is_args$query_string;
proxy_cache_valid 200 10m;
proxy_cache_lock on;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
2022-12-20 00:04:33 +01:00
#proxy_ssl_verify off;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
2023-01-14 18:48:17 +01:00
sub_filter 'gouters.canalblog.com' "$host";
2023-02-28 11:03:42 +01:00
sub_filter '<meta name="generator" content="CanalBlog - https://www.canalblog.com" />' '';
2023-02-06 23:02:40 +01:00
sub_filter_types text/html text/xml text/plain text/css;
2022-12-20 00:04:33 +01:00
sub_filter_once off;
}
2023-02-06 23:02:40 +01:00
location /googlebbc3cfa6d1866691.html {
root /var/www/gouter/;
2023-02-14 22:20:37 +01:00
}
location /yandex_93259fe4480c9828.html {
root /var/www/gouter/;
}
location /yandex_f07f7ace7d8459d8.html {
root /var/www/gouter/;
2023-02-06 23:02:40 +01:00
}
2022-12-20 00:04:33 +01:00
listen 443 ssl; # managed by Certbot
2023-01-14 18:48:17 +01:00
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
2022-12-20 00:04:33 +01:00
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
2023-02-06 23:02:40 +01:00
2023-01-14 18:48:17 +01:00
}
2022-12-20 00:04:33 +01:00
2023-01-14 18:48:17 +01:00
server {
if ($host = www.clarissariviere.fr) {
return 301 https://$host$request_uri;
} # managed by Certbot
2022-12-20 00:04:33 +01:00
2023-01-14 18:48:17 +01:00
if ($host = www.clarissariviere.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
2022-12-20 00:04:33 +01:00
2023-01-14 18:48:17 +01:00
if ($host = clarissariviere.fr) {
return 301 https://$host$request_uri;
} # managed by Certbot
2022-12-20 00:04:33 +01:00
2023-01-14 18:48:17 +01:00
if ($host = clarissariviere.com) {
2022-12-20 00:04:33 +01:00
return 301 https://$host$request_uri;
} # managed by Certbot
2023-01-14 18:48:17 +01:00
server_name clarissariviere.com clarissariviere.fr www.clarissariviere.fr www.clarissariviere.com;
2022-12-20 00:04:33 +01:00
2023-01-14 18:48:17 +01:00
listen 80;
2022-12-20 00:04:33 +01:00
return 404; # managed by Certbot
}