From 3f33b8e73fc1f219608af52b2c484a322b5412a3 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 16 Feb 2019 19:07:38 +0000 Subject: [PATCH 1/2] Add initial bitwarden docs --- services/bitwarden_rs.md | 76 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 services/bitwarden_rs.md diff --git a/services/bitwarden_rs.md b/services/bitwarden_rs.md new file mode 100644 index 0000000..a6f4aa1 --- /dev/null +++ b/services/bitwarden_rs.md @@ -0,0 +1,76 @@ +# Bitwarden + +bitwarden_rs inside a container. This is a re-implementation of the main [Bitwarden](https://bitwarden.com/) server in rust. It is meant to replace the main Bitwarden server and provide a better self-hosting alternative. This server *is compatible* with the official Bitwarden clients. This image also contains the main Bitwarden web ui. + +## Inspiration / Sources + +- [https://bitwarden.com/](https://bitwarden.com/) +- [https://github.com/dani-garcia/bitwarden_rs](https://github.com/dani-garcia/bitwarden_rs) + +## Install / Update / Run Script + +Setup a generic script that'll auto update bitwarden, build a container and launch it. You should only run this script at first launch and/or when you're looking for updates. + +``` bash + +mkdir -p /var/bitwarden + +cat > /scratch/docker/bitwarden.sh < /etc/unbound/local_zone/bitwarden.conf < Date: Sat, 16 Feb 2019 19:09:31 +0000 Subject: [PATCH 2/2] Cleanup docker run of bitwarden --- services/bitwarden_rs.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/services/bitwarden_rs.md b/services/bitwarden_rs.md index a6f4aa1..c6e9706 100644 --- a/services/bitwarden_rs.md +++ b/services/bitwarden_rs.md @@ -27,6 +27,16 @@ cat > /scratch/docker/bitwarden.sh < \ +# -e SMTP_FROM= \ +# -e SMTP_PORT=587 \ +# -e SMTP_SSL=true \ +# -e SMTP_USERNAME= \ +# -e SMTP_PASSWORD= \ + +# openssl rand -base64 48 +# -e ADMIN_TOKEN=[above_output] + ARCH=\`arch\` if [ \$ARCH == "aarch64" ] then @@ -41,16 +51,18 @@ docker container stop bitwarden docker container rm bitwarden docker run \\ - --name nextcloud \\ + --name bitwarden \\ --restart unless-stopped \\ --net docker-private \\ - --ip 172.30.7.7 \\ + --ip 172.30.12.23 \\ -e TZ=UTC \\ -e DEBUG=1 \\ - -e SIGNUPS_ALLOWED=false \\ -e WEBSOCKET_ENABLED=true \\ - -v /var/bitwarden:/data \\ - registry.lollipopcloud.solutions/\$ARCH/bitwarden_rs + -e SIGNUPS_ALLOWED=false \\ + -e DOMAIN=https://bitwarden.domain.tld \\ + -e ADMIN_TOKEN=[see above] \\ + -v /var/bitwarden/:/data/ \\ + registry.lollipopcloud.solutions/\$ARCH/bitwarden_rs:latest EOF