Other relevant details: the relevant parts of my current reverse proxy configuration (only the certs and log sections are missing)(also, I'm using one of the example from the wiki)
[2022-12-02 21:27:13.872][vaultwarden::api::notifications][ERROR]###########################################################'/notifications/hub' should be proxied to the websocket server or notifications won't work.
Go to the Wiki for more info, or disable WebSockets setting WEBSOCKET_ENABLED=false.
###########################################################################################
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @super-ben on GitHub (Dec 2, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2950
Subject of the issue
Can't seem to make the reverse proxy serve websocket connections, no matter the seemingly correct parameters.
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_USERNAME, SMTP_PASSWORD
Install method: docker-compose
Clients used:
Reverse proxy and version: nginx/1.18.0
MySQL/MariaDB or PostgreSQL version:
Other relevant details: the relevant parts of my current reverse proxy configuration (only the certs and log sections are missing)(also, I'm using one of the example from the wiki)
My docker-compose.yml:
My .env file:
Steps to reproduce
I simply started using Vaultwarden today and noticed the errors in the logs (will provide examples later)
Expected behaviour
Working websocket connections. :)
Actual behaviour
I see 502 errors in every logs, for example, the nginx error log:
In the access log:
Docker logs:
Also, when I look up https://warden.domain.tld/notifications/hub in my browser, I get a 502 error right away.
If I check inside the container, I get this:
Troubleshooting data
I tried multiple different websocket configs (from the examples in the wiki, from my previous configs, etc), with no prevail.
I would be grateful for any pointers.