Commit Graph

28 Commits

Author SHA1 Message Date
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
Daniel García 39891e86a0 Updated dependencies, added Travis CI integration and some badges 2018-08-24 17:07:11 +02:00
Miroslav Prasil 69a18255c6 Bump up version to 1.0.0 2018-08-21 21:21:54 +01:00
Miroslav Prasil c40baf5e17 Merge branch 'master' into beta 2018-08-21 21:17:12 +01:00
Miroslav Prasil df041108f6 Bump version to 0.13.0 - latest Vault v1 2018-08-21 21:13:56 +01:00
Miroslav Prasil b163aeb8ca Merge changes in master to beta branch (concurrency fixes) 2018-08-01 11:37:42 +01:00
Shane A. Faulkner d335f45e34 Bump version to 0.12.0 2018-07-31 12:07:03 -05:00
Daniel García a291dea16f Updated dependencies and Docker image to new web-vault 2018-07-21 17:27:00 +02:00
Miroslav Prasil 2dc1427027 Bump the version 2018-07-18 12:04:48 +01:00
Daniel García 03172a6cd7 Bump version to 0.10.0 2018-07-13 16:06:01 +02:00
Daniel García dae92b9018 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
Daniel García 7d01947173 Updated dependencies and rust version 2018-06-29 23:18:19 +02:00
Daniel García f72efa899e Updated dependencies and created 'rust-toolchain', to mark a working nightly to rustup users, and hopefully avoid some nightly breakage. 2018-06-12 17:30:36 +02:00
Daniel García f1b4a146ae Updated version 2018-06-01 16:06:25 +02:00
Daniel García b46e9c936d Updated dependencies and removed some warnings from jsonwebtoken 2018-06-01 15:34:26 +02:00
Miroslav Prasil 103acd1747 Update rocket to 0.3.12 2018-06-01 13:19:05 +01:00
Miroslav Prasil 571ef6823d Update rocket to 0.3.11 2018-05-21 13:20:34 +01:00
Daniel García 8298795087 Update dependencies and bundle SQLite with the program, so we have one less dependency to install separately 2018-05-07 21:33:54 +02:00
Daniel García 3a1321a5a9 Updated some dependencies and removed old unused attribute that might create compile errors 2018-04-24 15:49:38 +02:00
Daniel García b4a42054f9 Updated dependencies and removed deprecated Diesel feature 2018-04-18 12:17:25 +02:00
Miroslav Prasil 49d080a97e Bump the rocket version to compile with current nightly 2018-04-18 10:40:25 +01:00
Daniel García 9116253ae5 Updated dependencies 2018-03-21 00:08:46 +01:00
Daniel García 66097e5f12 r2d2_diesel is included in diesel since 1.1, so we don't need the dependencies directly.
Same thing with time, included in chrono
2018-03-07 18:41:34 +01:00
Daniel García 1277cb099d Updated Cipher API with breaking changes, and included backwards compatibility 2018-03-06 20:34:30 +01:00
Daniel García e2f7f56a81 Removed unused test library that broke with latest nightly, and updated dependencies 2018-03-01 14:36:39 +01:00
Daniel García e9a771057e Reduced Docker final image and updated dependencies 2018-02-18 19:14:25 +01:00
Daniel García b54684b677 Upload and download attachments, and added License file 2018-02-15 00:40:34 +01:00
Daniel García 5cd40c63ed First working version 2018-02-10 01:00:55 +01:00