From 229daa72fc7f104166b207f8086ed3dc81aeeb19 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Thu, 3 Oct 2024 19:44:15 +0200 Subject: [PATCH] Redirect plain URL to hash for ticket deep links --- .../configs/zammad/nginx/zammad.hamburg.ccc.de.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf index 39a7856..f008634 100644 --- a/playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf +++ b/playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf @@ -36,6 +36,10 @@ server { # Also provide "_hidden" for by, since it's not relevant. proxy_set_header Forwarded "for=$remote_addr;proto=https;host=$host;by=_hidden"; + location ~/(ticket/zoom/.*) { + return 302 https://zammad.hamburg.ccc.de/#$1; + } + location / { proxy_pass http://127.0.0.1:8080/; }