about summary refs log tree commit diff
path: root/infra/kubernetes/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'infra/kubernetes/nginx')
-rw-r--r--infra/kubernetes/nginx/nginx.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/infra/kubernetes/nginx/nginx.conf b/infra/kubernetes/nginx/nginx.conf
index ead5c4061720..918aa6067806 100644
--- a/infra/kubernetes/nginx/nginx.conf
+++ b/infra/kubernetes/nginx/nginx.conf
@@ -41,4 +41,19 @@ http {
             return 302 https://www.google.com/maps/d/viewer?mid=1pJIYY9cuEdt9DuMTbb4etBVq7hs;
         }
     }
+
+    server {
+        listen       80;
+        server_name  git.tazj.in;
+
+        # Static assets must always hit the root.
+        location ~ ^/(favicon\.ico|cgit\.(css|png))$ {
+           proxy_pass http://cgit;
+        }
+
+        # Everything else hits the depot directly.
+        location / {
+            proxy_pass http://cgit/cgit.cgi/depot/;
+        }
+    }
 }