]> git.zue.dev - git.zue.dev/commitdiff
pretty urls
authorAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:21:23 +0000 (11:21 +0000)
committerAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:21:23 +0000 (11:21 +0000)
Caddyfile

index 5d443d846e4f4549ecb5aca58d34b64f3b749313..d0a190c5bd5e16e59f082669cc8ca7cdc29d1916 100644 (file)
--- 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
This page took 0.042669 seconds and 4 git commands to generate.