fix some minor ics issues (#275)
All checks were successful
Container Publish / build-image (push) Successful in 6m45s
Vulnerability Scan / Daily Vulnerability Scan (push) Successful in 1m53s

fixes #274

Reviewed-on: #275
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
Paolo Asperti 2024-10-05 09:57:26 +00:00 committed by Paolo Asperti
parent 1a057541ff
commit 37fb0f0900
2 changed files with 88 additions and 83 deletions

View File

@ -13,9 +13,14 @@ server {
} }
location ~ /events/elenco/ { location ~ /events/elenco/ {
default_type "text/calendar";
try_files $uri /it/index.ics; try_files $uri /it/index.ics;
} }
location ~ \.ics$ {
default_type "text/calendar";
}
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; return 301 https://bglug.it/it/chi-siamo/Statuto.pdf;
} }

View File

@ -1,4 +1,4 @@
{{- $numcaratteri := 66 }} {{- $numcaratteri := 66 -}}
BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
PRODID:-//BgLUG//BgLUG Events Calendar//EN PRODID:-//BgLUG//BgLUG Events Calendar//EN