]> git.zue.dev - git.zue.dev/commitdiff
revert last commit
authorAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:30:07 +0000 (11:30 +0000)
committerAlex Pooley (@zuedev) <zuedev@gmail.com>
Mon, 23 Mar 2026 11:30:07 +0000 (11:30 +0000)
Caddyfile
docker-compose.yaml

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
index 628c58279292489cc3dd5531261a54f60dcd191f..4753c0fd30e98d7fae65c97934933041de9378a0 100644 (file)
@@ -28,7 +28,6 @@ services:
             echo "\$$feature{'avatar'}{'default'} = ['gravatar'];" >> /etc/gitweb.conf && \
             echo "\$$feature{'timed'}{'default'} = [1];" >> /etc/gitweb.conf && \
             echo "\$$feature{'remote_heads'}{'default'} = [1];" >> /etc/gitweb.conf && \
-            echo "\$$feature{'pathinfo'}{'default'} = [1];" >> /etc/gitweb.conf && \
             nginx -g 'daemon off;'
     ports:
       - 8080:80
This page took 0.053151 seconds and 4 git commands to generate.