From: Alex Pooley (@zuedev) Date: Mon, 23 Mar 2026 11:21:23 +0000 (+0000) Subject: pretty urls X-Git-Url: http://git.zue.dev/?a=commitdiff_plain;h=39131e7ef7741d1f5782bb5453ac289dfb0305c2;p=git.zue.dev pretty urls --- diff --git a/Caddyfile b/Caddyfile index 5d443d8..d0a190c 100644 --- a/Caddyfile +++ b/Caddyfile @@ -4,5 +4,13 @@ https://git.zue.dev { encode zstd gzip + + @clean_url { + path_regexp repo ^/([^/]+)/?$ + not path *.css *.js *.png *.gif *.ico + } + + rewrite @clean_url /?p={re.repo.1};a=summary + reverse_proxy http://gitweb:80 } \ No newline at end of file