Fix Dozzle WebSocket connectivity for API access

Added WebSocket support configuration to both oauth2-proxy and Traefik ingress:
- Enable explicit WebSocket proxying in oauth2-proxy (--proxy-websockets=true)
- Pass Host header through oauth2-proxy (--pass-host-header=true)
- Add WebSocket upgrade headers to Traefik ingress annotations

This fixes the "UI cannot connect to API" error by ensuring real-time
log streaming WebSocket connections work through the authentication proxy.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-19 14:24:26 +00:00
parent 3b80ed550c
commit 9ae3973d9b

View file

@ -69,6 +69,8 @@ spec:
- --cookie-name=__Host-oauth2-proxy - --cookie-name=__Host-oauth2-proxy
- --cookie-expire=12h - --cookie-expire=12h
- --code-challenge-method=S256 - --code-challenge-method=S256
- --proxy-websockets=true
- --pass-host-header=true
env: env:
- name: OAUTH2_PROXY_CLIENT_ID - name: OAUTH2_PROXY_CLIENT_ID
valueFrom: valueFrom: