How to configure and run Vaultwarden

Advertisements

In this complete guide i will show you how to configure and run Vaultwaeden as a native app on your Terramaster NAS.

Advertisements

Download and install Caddy

Download and install Vaultwarden

Advertisements

If you already have a domain linked to your Internet IP address, go to next step.

If not, follow this guide How to Setup DDNS(duckdns) on TOS6 to create your domain using the free DDNS provider Duck DNS.
In the next steps for this guide, we'll use the DDNS from the guide above: myddnsdomain.duckdns.com but you have to use your own domain

To access Vaultwarden admin page, we need to generate an admin token.

To generate the token, navigate to this link https://argon2.online/

  • Type your text in Plain Text Input field
  • Click on the hamburger icon to generate a random Salt
  • Choose 4 as Parallelism Factor
  • Choose 65540 at Memory Cost
  • Choose 3 at Iterations
  • Choose 48 as Hash Length
  • Press on Generate hash
  • Press on Copy to copy the hash string to memory

Open Vaultwarden app frontend and go to Configuration files >> Edit .env

Scroll down until you find the variable ADMIN_TOKEN
Replace this value with the token generated on Step 4, then hit Apply.

Open Vaultwarden app frontend and go to Configuration files >> Edit .env

Next, in the config file:

  • replace yourdomain with your domain name
  • replace youremailaddress with your email address

Hit Apply button

On your router, forward WAN port 443 to your NAS IP port 7443

Here and example from my router, on your router the interface might be different

Open Caddy app frontend and go to Configuration files >> Edit Caddyfile

In the config file:

  • Add this line under #General Options

auto_https disable_redirect

  • Add your email address
  • Add this line at the end of the file

import /usr/local/@APP_CONFIG/Vaultwarden/vaultwarden.caddy

Your config should be as in the image below, then hit Apply

Navigate to your your domain myddnsdomain.duckdns.com, you should be able to access the vaultwarden interface

On the first access, click on Create account button and create the main user and master password

Scroll to Top