Skip to content

Commit

Permalink
✨ Adds Websockets support (#9)
Browse files Browse the repository at this point in the history
* Enable websocket support

* Enable websockets support

* Update run

* Update config.json

* Update config.json
  • Loading branch information
reharmsen authored and frenck committed Dec 3, 2019
1 parent 54f0d2d commit baaef0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bitwarden/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"hassio_api": true,
"hassio_role": "default",
"ports": {
"7277/tcp": 7277
"7277/tcp": 7277,
"7278/tcp": 7278,
},
"ports_description": {
"7277/tcp": "Bitwarden Vault"
"7277/tcp": "Bitwarden Vault",
"7278/tcp": "Bitwarden WebSockets"
},
"map": [
"ssl"
Expand Down
2 changes: 2 additions & 0 deletions bitwarden/rootfs/etc/services.d/bitwarden/run
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ declare secret_key
export DATA_FOLDER=/data
export ROCKET_PORT=7277
export ROCKET_WORKERS=2
export WEBSOCKET_ENABLED=true
export WEBSOCKET_PORT=7278

# Set a random secret, to remove confusing warning from logs.
secret_key=$(openssl rand -base64 32)
Expand Down

0 comments on commit baaef0b

Please sign in to comment.