From ca65a4940cc174ccbf44c17e12dc3968e2d8e936 Mon Sep 17 00:00:00 2001 From: June Date: Tue, 16 Sep 2025 19:45:02 +0200 Subject: [PATCH] redirect /calendar to the Nextcloud calendar to make this location work Apparently this location gets used in several locations, so create a redirect. --- .../hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix index b70f74a..8277b5f 100644 --- a/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/hamburg.ccc.de.nix @@ -83,6 +83,11 @@ return = "302 https://$host/blog/index.xml"; }; + # Redirect /calendar to the Nextcloud calendar, as this location apparently gets used in several locations. + locations."/calendar" = { + return = "302 https://cloud.hamburg.ccc.de/apps/calendar/embed/QJAdExziSnNJEz5g"; + }; + extraConfig = '' # Make use of the ngx_http_realip_module to set the $remote_addr and # $remote_port to the client address and client port, when using proxy