From e13cc2b851530aa5bcc8d74aefef33fab358c5c5 Mon Sep 17 00:00:00 2001 From: alexz Date: Sun, 4 Jan 2026 09:49:08 +0000 Subject: [PATCH] Add Traefik basic auth for rego-tunnel noVNC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove websockify BasicHTTPAuth (doesn't trigger browser prompts) - Add Traefik basicauth middleware instead (proper browser auth dialog) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/rego-tunnel/docker-compose.yml | 2 ++ apps/rego-tunnel/shared/supervisord.conf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rego-tunnel/docker-compose.yml b/apps/rego-tunnel/docker-compose.yml index 50e5eab..72d20d5 100755 --- a/apps/rego-tunnel/docker-compose.yml +++ b/apps/rego-tunnel/docker-compose.yml @@ -42,10 +42,12 @@ services: traefik.http.routers.rego-tunnel-runtipi-insecure.entrypoints: web traefik.http.routers.rego-tunnel-runtipi-insecure.service: rego-tunnel-runtipi traefik.http.routers.rego-tunnel-runtipi-insecure.middlewares: rego-tunnel-runtipi-web-redirect + traefik.http.middlewares.rego-tunnel-runtipi-auth.basicauth.users: "alexz:$$2y$$05$$nv5ygL66/LEYut3RBuslFuXBwHIDg1yKFmhB8B4Nyqd8GJnN4gy5u" traefik.http.routers.rego-tunnel-runtipi.rule: Host(`${APP_DOMAIN}`) traefik.http.routers.rego-tunnel-runtipi.entrypoints: websecure traefik.http.routers.rego-tunnel-runtipi.service: rego-tunnel-runtipi traefik.http.routers.rego-tunnel-runtipi.tls.certresolver: myresolver + traefik.http.routers.rego-tunnel-runtipi.middlewares: rego-tunnel-runtipi-auth runtipi.managed: true runtipi.appurn: rego-tunnel:runtipi cap_add: diff --git a/apps/rego-tunnel/shared/supervisord.conf b/apps/rego-tunnel/shared/supervisord.conf index 749a8af..95ac431 100644 --- a/apps/rego-tunnel/shared/supervisord.conf +++ b/apps/rego-tunnel/shared/supervisord.conf @@ -40,7 +40,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:novnc] -command=/usr/bin/websockify --web /usr/share/novnc 8006 localhost:5900 --auth-plugin BasicHTTPAuth --auth-source alexz:Az@83278327$$@@ +command=/usr/bin/websockify --web /usr/share/novnc 8006 localhost:5900 autostart=true autorestart=true priority=30