From 7c8527079abbf71ff999535407593cfb1394260d Mon Sep 17 00:00:00 2001 From: andy bunce Date: Tue, 13 Jun 2023 17:13:22 +0100 Subject: [PATCH] [mod] vault --- caddy/Caddyfile | 11 ++++++++++- vaultwarden/docker-compose.yml | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index b1e82fb..f12cfa9 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -90,7 +90,16 @@ quodatum.duckdns.org { @warden host warden.quodatum.duckdns.org handle @warden { import auth_quodatum - import xu4 8882 + encode gzip + + # The negotiation endpoint is also proxied to Rocket + reverse_proxy /notifications/hub/negotiate 0.0.0.0:8882 + + # Notifications redirected to the websockets server + reverse_proxy /notifications/hub 0.0.0.0:3012 + + # Send all other traffic to the regular Vaultwarden endpoint + reverse_proxy 0.0.0.0:8882 } @nextcloud host nextcloud.quodatum.duckdns.org diff --git a/vaultwarden/docker-compose.yml b/vaultwarden/docker-compose.yml index 67649a1..eff2504 100644 --- a/vaultwarden/docker-compose.yml +++ b/vaultwarden/docker-compose.yml @@ -5,7 +5,10 @@ services: container_name: vaultwarden image: vaultwarden/server:latest restart: unless-stopped + environment: + - WEBSOCKET_ENABLED=true volumes: - ./data/:/data/ ports: - - 8882:80 \ No newline at end of file + - 127.0.0.1:8882:80 + - 127.0.0.1:3012:3012 \ No newline at end of file