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; autoindex on;
''; '';
}; };
"~ ^/calendars/[^/]+\.ics$" = { "~ ^/calendar/([^/]+\.ics)$" = {
root = "/srv/http/ics"; alias = "/srv/http/calendars/$1";
tryFiles = "$uri $uri/ $uri.ics =404"; extraConfig = ''
add_header Cache-Control "no-cache";
types {
text/calendar ics;
}
default_type text/calendar;
'';
}; };
}; };
}; };