vaultwarden/src
Daniel García d70864ac73 Initial version of websockets notification support.
For now only folder notifications are sent (create, rename, delete).
The notifications are only tested between two web-vault sessions in different browsers, mobile apps and browser extensions are untested.

The websocket server is exposed in port 3012, while the rocket server is exposed in another port (8000 by default). To make notifications work, both should be accessible in the same port, which requires a reverse proxy.

My testing is done with Caddy server, and the following config:

```
localhost {

    # The negotiation endpoint is also proxied to Rocket
    proxy /notifications/hub/negotiate 0.0.0.0:8000 {
        transparent
    }

    # Notifications redirected to the websockets server
    proxy /notifications/hub 0.0.0.0:3012 {
        websocket
    }

    # Proxy the Root directory to Rocket
    proxy / 0.0.0.0:8000 {
        transparent
    }
}
```

This exposes the service in port 2015.
2018-08-30 17:58:53 +02:00
..
api Initial version of websockets notification support. 2018-08-30 17:58:53 +02:00
db Initial version of websockets notification support. 2018-08-30 17:58:53 +02:00
auth.rs Add confirmed check to the OrgHeaders request guard 2018-07-16 10:23:45 +01:00
crypto.rs Fixed cipher import, created missing data structs instead of using generic Value, and fixed some warnings 2018-02-23 00:38:54 +01:00
main.rs Initial version of websockets notification support. 2018-08-30 17:58:53 +02:00
util.rs Update theerror format to show message in new Vault 2018-08-15 15:50:07 +01:00