Commit 994b925

Daniel Axtens <dja@axtens.net>
2026-09-30 00:11:37
Fixes
1 parent 71029b4
Changed files (1)
nginx/nginx.conf
@@ -45,23 +45,31 @@ http {
             }
         }
 
-	location = /git {
-		return 301 /git/www/;
-	}
+        location = /git {
+            return 301 https://www.intermittent.network/git/www/index.html;
+        }
+
+        location = /git/ {
+            return 301 https://www.intermittent.network/git/www/index.html;
+        }
 
-        location /git {
+        location = /git/www {
+            return 301 https://www.intermittent.network/git/www/index.html;
+        }
+
+        location ^~ /git/www {
             gzip_vary     on;
             gzip_static   on;
             zstd_static   on;
             brotli_static on;
-            root   /usr/local/www/git;
-            index  index.html;
+            root   /usr/local/www/;
+            index index.html;
 
             etag off;
             if ($hash_etag != "") {
                 add_header ETag $hash_etag always;
                 add_header Cache-Control "public, s-maxage=31536000, stale-if-error=3600";
-                add_header Surrogate-Key "blog";
+                add_header Surrogate-Key "git";
                 add_header Last-Modified "";
             }
         }