WebSocket connection drops with Cloudflare proxy

resolved Vaultwarden networking Reported 2026-01-20 Verified 2026-03-01

Real-time sync stops working when Vaultwarden is behind Cloudflare proxy due to WebSocket timeout defaults.

Error Messages
WebSocket connection closed1006 abnormal closure
Versions: 1.32
OS: ubuntu-22.04ubuntu-24.04
Deployment: docker

Resolutions (1)

high confidence 31 verified

Enable WebSockets in Cloudflare dashboard and set the environment variable:

WEBSOCKET_ENABLED=true

In Cloudflare: Network tab > WebSockets > On. Also set proxy_read_timeout 3600s in your reverse proxy config.

Verified by 31 users Added 2026-01-25
Applies to: 1.32 on docker
/ Search Esc Clear ? Sitemap
24 tools / 3 guides / 9 resolved issues