0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2025-03-05 17:00:20 +01:00
bitwarden_rs/src/db/models
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
..
attachment.rs Attachment::save() returns Result instead of bool (#161) 2018-08-29 15:22:19 +02:00
cipher.rs Support password history #155 (#156) 2018-08-27 23:08:58 +02:00
collection.rs Update affected users revision when there are collection changes 2018-08-21 12:20:55 +01:00
device.rs Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device. 2018-07-12 22:22:10 +02:00
folder.rs Initial version of websockets notification support. 2018-08-30 17:58:53 +02:00
mod.rs Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device. 2018-07-12 22:22:10 +02:00
organization.rs Update affected users revision on cipher and folder change 2018-08-21 17:32:00 +01:00
two_factor.rs Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device. 2018-07-12 22:22:10 +02:00
user.rs Merge pull request #144 from mprasil/collection_revision 2018-08-21 13:47:19 +02:00