Bitwarden Synology

Posted on  by 



After Setting up my old and trusted KeePass+Nextcloud Combo and struggling with synchronization conflicts as well as integration problems with Firefox, I decided to give Bitwarden a go.

UPDATE: Instead of manually setting up the Docker container, I now use docker-compose to set it up. It automatically spawns a second container, backing up the database so I can run a backup of my passwords.

Browser

The concept is simple: It's FOSS, everything is encrypted client side. All normal functionality (imho) is available for free, premium costs 10$/year or for a family of up to five its 12$/year (1$/month). Being an open protocol you can obviously host it yourself. What I don't get though is why I would have to pay a monthly subscription fee for the premium features even if I host it myself. Therefore I decided to install dani-garcia/bitwarden_rs on my Synology NAS in a Docker container. Here's a short list of To-Dos:

Bitwarden, the open source password manager, makes it easy to generate and store unique passwords for any browser or device. Create your free account on the platform with end-to-end encryption and flexible integration options for you or your business.

  1. Setup a (sub-)domain. Mine's hosted at inwx.de, so I created a CNAME entry for my existing setup. I'll use pass.example.tld here.
  2. Get a certificate for that domain. This one's easy through the interface and Let's Encrypt. If you already have one for other services, don't worry you can have multiple certificates for different (sub-)domains. (Settings -> Security -> Certificates -> Add)
  3. Add a reverse proxy. This forwards requests to your new (sub-domain) from port 443 (https) to the port the Docker container is running on. I'm going to use 8123 here, but any port is fine. This way you can have multiple services be reachable on the https port with different (sub-)domains. (Application Portal -> Reverse Proxy -> Create).
    Just give it a good name like 'Bitwarden'; for source choose HTTPS, hostname is pass.example.tld, port 443. Destination is HTTP, localhost, port 8123. Which is where your Docker container is going to be.
  4. Download the image. Go to the Registry in the Docker interface (Install Docker from the Package Manager if you haven't already) and download the image for bitwardenrs/server:latest.
  5. Launch the image. Go to Images in the Docker interface and launch it. The name is arbitrary, mine's bitwardenrs. Go to 'Advanced Settings'.
  6. Configure bitwarden.
    1. Activate automatic restart.
    2. Go to volume and map docker/bitwardenrs from the NAS to /data inside the container.
    3. Got to ports and map the container port 80 to the local port 8123. 3012 is the port for the WebSocket, which we won't use for now.
    4. Got to environment variables. First set DOMAIN=https://pass.example.tld, otherwise things might magically break. I like to restrict signups to my domain so I set SIGNUPS_DOMAINS_WHITELIST=example.tld. To disable signups completely just set SIGNUPS_ALLOWED=false. If you want to be able to register you also need to configure environment variables for an SMTP Server.
  7. Enjoy.

This setup uses environment variables instead of the config.js. Be aware, that any configuration you might do in the admin interface (and thereby config.js) overwrites this.

UPDATE: Here's the docker-compose.yml. It's the same as above, but also spawns a second container bitwarden-backup based on bitwarden_rs-backup that backs up the database to db_backupfolder next to the original database every 3rd of a month at midnight (because my NAS backup runs at 0h30).

I changed the Bitwarden app to only open with a pin code. I open Bitwarden Unfortunately, whenever I try to fill in a username and password on an email, banking account, etc, it forces me to type in my entire Bitwarden master password before it will then autofill the email, banking username and password. Apr 20, 2021 From now on you can access your BitWarden application over HTTPS from anywhere. Note: You can use the same operation described above for all docker packages you have previously installed on your Synology NAS to access them via HTTPS/SSL.

Image: Kspearrin CC BY-SA 4.0

Map subdomains to docker containers unifi controller on a synology nas creating a container synology inc map subdomains to docker containers best docker containers for synology

Best Docker Containers For Synology About Dock Photos Mtgimage
Docker Synology Inc
Installing The Unifi Controller On A Synology Nas In 5 Minutes
Best Docker Containers For Synology About Dock Photos Mtgimage
Creating A Container Synology Inc
Synology
Docker On Synology
How To Install Run On Synology Dsm Nas Using Docker
Get Your Synology Ready And Install Docker Gh2home
Docker On A Synology Nas Also Running Asp And Core

Bitwarden Silk Browser

Bitwarden Synology
Creating A Container Synology Inc
4 Best Docker Gui Tools To Manage Containers Graphically H2s Media
Synology Docker Media Server With Traefik Pose And

Ultimate smart home media server with docker and ubuntu 18 04 basic installing the unifi controller on a synology nas in 5 minutes how to install bitwarden with docker and synology hometechger how to install bitwarden with docker and synology hometechger best docker containers for synology about dock photos mtgimage


Bitwarden Synology Ios

Trending Posts





Coments are closed