fix #301 #302

Merged
paspo merged 2 commits from paspo/bglug.it:fix2 into main 2024-10-22 17:55:37 +00:00
Showing only changes of commit 1b64787dd5 - Show all commits

View File

@ -12,6 +12,9 @@ server {
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
add_header Content-Security-Policy "default-src 'self'; img-src https://*; child-src 'none';";
include /etc/nginx/mime.types;
types {
text/calendar ics;
}
@ -21,16 +24,16 @@ server {
rewrite ^/feed/.*$ /it/index.xml last;
}
location ~ ^/events/elenco/ {
location = /events/elenco/ {
default_type "text/calendar";
rewrite ^/events/elenco/.*$ /it/index.ics last;
rewrite ^.*$ /it/index.ics last;
}
location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ {
location = /wp-content/uploads/2008/02/Statuto.pdf {
return 301 https://bglug.it/it/chi-siamo/Statuto.pdf;
}
location ~ ^/en/.* {
location ^~ /en/ {
error_page 404 /en/404.html;
}
}