Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Adds Websockets support #9

Merged
merged 5 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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