fix: remove klaus from git services list master
authorShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 03:56:55 +0000 (22:56 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 03:57:02 +0000 (22:57 -0500)
Makefile
etc/nginx/conf.d/dev/git-http.conf

index 4de008fd49dbfb6978de24b2a1a976cfa06c97a0..a0741e7d4dd4517666958ba36d48f7a583f3dab2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -83,27 +83,6 @@ deploy/nginx: stage/nginx
        ssh -t $(VPS) "bash ~/.nginx-ops/staging/scripts/deploy.sh test $(ENV) && \
                       bash ~/.nginx-ops/staging/scripts/deploy.sh $(ENV)"
 
-
-.PHONY: deploy/klaus
-deploy/klaus: ##H @Remote Deploy Klaus (systemd + nginx) and install deps
-       @echo "Uploading deployment bundle..."
-       tar cz -C etc/systemd/system klaus.service -C ../../nginx/conf.d klaus.conf -C ../../../scripts klaus_app.py | ssh $(VPS) "cat > /tmp/klaus-deploy.tgz"
-       @echo "Installing on $(VPS_HOST)..."
-       ssh -t $(VPS) "cd /tmp && tar xz -f klaus-deploy.tgz && \
-               sudo bash -c '# apt-get update && apt-get install -y universal-ctags && \
-               pip3 install klaus gunicorn markdown && \
-               mv klaus_app.py /usr/local/bin/klaus_app.py && \
-               mv klaus.service /etc/systemd/system/klaus.service && \
-               systemctl daemon-reload && \
-               systemctl enable --now klaus && \
-               systemctl restart klaus && \
-               mv /etc/nginx/conf.d/git-http.conf /etc/nginx/conf.d/git-http.conf.disabled 2>/dev/null || true && \
-               mv klaus.conf /etc/nginx/conf.d/klaus.conf && \
-               nginx -t && \
-               systemctl reload nginx' && \
-               rm klaus-deploy.tgz"
-       @echo "Klaus deployed!"
-
 .PHONY: certbot/nginx
 certbot/nginx: ##H @Remote Run certbot on remote VPS
        @echo "Running certbot on $(VPS_HOST)..."
index c2d74cafc77c32dfcd8930a1b09fc76710ef5277..f13cd857cbe72272859926d9e5ef293e5c474c89 100644 (file)
@@ -98,28 +98,17 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # Version 3: Klaus (Python Viewer)
+    # /v3 redirect -> root
     # ----------------------------------------------------------------------
-    location /v3/ {
-        proxy_pass http://127.0.0.1:8080/;
-        proxy_set_header Host $host;
-        proxy_set_header X-Real-IP $remote_addr;
-        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-        proxy_set_header X-Forwarded-Proto $scheme;
-    }
-
-    # ----------------------------------------------------------------------
-    # /v4 redirect -> root
-    # ----------------------------------------------------------------------
-    location = /v4 {
+    location = /v3 {
         return 302 /;
     }
-    location = /v4/ {
+    location = /v3/ {
         return 302 /;
     }
 
     # ----------------------------------------------------------------------
-    # Version 4: Gitea (Full Server with Backend, Main)
+    # Version 3: Gitea (Full Server with Backend, Main)
     # ----------------------------------------------------------------------
 
     location / {