Skip to content

Commit

Permalink
feat(websockets): websockets are now enabled by default
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Zapparoli <[email protected]>
  • Loading branch information
arthurgeek committed Mar 18, 2024
1 parent 2c7eea6 commit 0fcb922
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
5 changes: 0 additions & 5 deletions .config.sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,3 @@ DOMAIN=https://vw.example.com

# Check https://github.com/dani-garcia/vaultwarden/wiki/Hardening-Guide#disable-password-hint-display
# SHOW_PASSWORD_HINT=false

# Check https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications
# You don't need to do any additional configuration, as the template
# already uses Caddy to configure the websocket proxy
WEBSOCKET_ENABLED=true
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Template for deploying [Vaultwarden] on [Fly.io]

This is a template for deploying [Vaultwarden] on [Fly.io] with
[Caddy](https://caddyserver.com) for [websockets] support and
[supercronic](https://github.com/aptible/supercronic) for hourly
[restic](https://restic.net) backups with e-mail failure notification
[Caddy](https://caddyserver.com) and [supercronic](https://github.com/aptible/supercronic)
for hourly [restic](https://restic.net) backups with e-mail failure notification
via [msmtp](https://marlam.de/msmtp/).

This uses a single fly machine, within Fly's [free allowance](https://fly.io/docs/about/pricing/#free-allowances).
Expand Down Expand Up @@ -204,5 +203,4 @@ That's all! Now, any changes to your `Dockerfile`, `fly.toml` or

[Vaultwarden]: https://github.com/dani-garcia/vaultwarden
[Fly.io]: https://fly.io
[websockets]: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications
[fly.toml]: fly.toml
6 changes: 0 additions & 6 deletions config/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
-Last-Modified
}

# The negotiation endpoint is also proxied to Rocket
reverse_proxy /notifications/hub/negotiate localhost:8080

# Notifications redirected to the websockets server
reverse_proxy /notifications/hub localhost:3012

# Proxy everything else to Rocket
reverse_proxy localhost:8080 {
# Send the true remote IP to Rocket, so that vaultwarden can put this in the log
Expand Down

0 comments on commit 0fcb922

Please sign in to comment.