From 4227ca4c641ba95f8df2adaf3ec3aee153987c9d Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 10 Jan 2025 01:55:03 -0500 Subject: [PATCH] dont break gitlab links --- hosts/chunk/Caddyfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/chunk/Caddyfile b/hosts/chunk/Caddyfile index d2ba708..2d6dde0 100644 --- a/hosts/chunk/Caddyfile +++ b/hosts/chunk/Caddyfile @@ -13,7 +13,13 @@ git.cything.io { import common - redir https://git.cy7.sh{uri} permanent + + # wrap in route so things are evaluated in the order written + route { + # rewrite gitlab URIs to make it work with forgejo + uri path_regexp \/-\/ / + redir https://git.cy7.sh{uri} permanent + } } git.cy7.sh {