This commit is contained in:
XenGi 2026-07-14 19:47:54 +02:00
commit 0b18d44f19
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -84,9 +84,15 @@ in
autoindex on;
'';
};
"~ ^/calendars/[^/]+\.ics$" = {
root = "/srv/http/ics";
tryFiles = "$uri $uri/ $uri.ics =404";
"~ ^/calendar/([^/]+\.ics)$" = {
alias = "/srv/http/calendars/$1";
extraConfig = ''
add_header Cache-Control "no-cache";
types {
text/calendar ics;
}
default_type text/calendar;
'';
};
};
};