diff --git a/hosts/dav/baikal.nix b/hosts/dav/baikal.nix index 91c2a15..7f284b9 100644 --- a/hosts/dav/baikal.nix +++ b/hosts/dav/baikal.nix @@ -17,7 +17,6 @@ kTLS = true; forceSSL = true; enableACME = true; - locations."/all.ics".root = "/srv/www/calendar"; }; }; } diff --git a/hosts/www/nginx.nix b/hosts/www/nginx.nix index 851da80..c32a1e5 100644 --- a/hosts/www/nginx.nix +++ b/hosts/www/nginx.nix @@ -45,6 +45,9 @@ in "/twentyyears/" = { alias = "/srv/http/twentyyears/"; }; + "/thirtytwoyears/" = { + alias = "/srv/http/thirtytwoyears/"; + }; # RFC8805 "/noc/" = { alias = "/srv/http/noc/"; @@ -81,6 +84,10 @@ in autoindex on; ''; }; + "~ ^/calendar/[^/]+\.ics$" = { + root = "/srv/http/ics"; + tryFiles = "$uri $uri/ $uri.ics =404"; + }; }; }; "staging.${config.networking.domain}" = {