vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit d66d4fd87ff397a9903cabbd6603eeade63cd05d
parent 434551e012f9f01fe279069eba1ff115651a7c8a
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 11 Sep 2018 17:09:33 +0200

Add error message when the proxy doesn't route websockets correctly

Diffstat:
Msrc/api/notifications.rs | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/api/notifications.rs b/src/api/notifications.rs @@ -6,7 +6,12 @@ use auth::Headers; use db::DbConn; pub fn routes() -> Vec<Route> { - routes![negotiate] + routes![negotiate, websockets_err] +} + +#[get("/hub")] +fn websockets_err() -> JsonResult { + err!("'/notifications/hub' should be proxied towards the websocket server, otherwise notifications will not work. Go to the README for more info.") } #[post("/hub/negotiate")]