Categories: How to's

How to configure and run Vaultwarden

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

Download and install Caddy

Download and install Vaultwarden

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

outkastm

Recent Posts

How to Setup DDNS(duckdns) on TOS6

In this guide i will show you how to assign a fixed host and domain…

2 months ago

How to assign permission for application user on TOS6

Some apps will run as specific application user, in order to have access only to…

6 months ago

How to use gmail as smtp server to send email in TOS6

Currently, the local email server in TOS6 is broken for some users. In this guide…

11 months ago

How to use in built Terminal on TOS6

In this guide i will show you how to use the TOS6 in built terminal…

11 months ago

App’s updates and new app’s release

Here some info about current develop status of 3rd party apps: TOS6 - new apps…

1 year ago

How to create DockerYAML and DockerAppsData shared folders

In this guide i will show you how to create the shared folders DockerYAML and…

1 year ago