Add Traefik basic auth for rego-tunnel noVNC
Some checks failed
Test / test (push) Has been cancelled

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-01-04 09:49:08 +00:00
parent 6e1d7efa6d
commit e13cc2b851
2 changed files with 3 additions and 1 deletions

View File

@@ -42,10 +42,12 @@ services:
traefik.http.routers.rego-tunnel-runtipi-insecure.entrypoints: web 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.service: rego-tunnel-runtipi
traefik.http.routers.rego-tunnel-runtipi-insecure.middlewares: rego-tunnel-runtipi-web-redirect 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.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.rego-tunnel-runtipi.entrypoints: websecure traefik.http.routers.rego-tunnel-runtipi.entrypoints: websecure
traefik.http.routers.rego-tunnel-runtipi.service: rego-tunnel-runtipi 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.tls.certresolver: myresolver
traefik.http.routers.rego-tunnel-runtipi.middlewares: rego-tunnel-runtipi-auth
runtipi.managed: true runtipi.managed: true
runtipi.appurn: rego-tunnel:runtipi runtipi.appurn: rego-tunnel:runtipi
cap_add: cap_add:

View File

@@ -40,7 +40,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
[program:novnc] [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 autostart=true
autorestart=true autorestart=true
priority=30 priority=30