06Templates (apps on your server)
Vaultwarden – your own password vault (template)
Set up Vaultwarden (Bitwarden-compatible password manager) with a domain and SSL on your VPS: invitations without SMTP, admin page and backup.
In short
The template installs Vaultwarden in Docker behind an HTTPS proxy with a Let’s Encrypt certificate. Open registration is off – only your email address is invited. Afterwards, you create your account and use the vault with the Bitwarden apps.
Requirements
Section titled “Requirements”- at least 768 MB RAM, 3 GB free storage
- a domain that points to your server’s IP (A record)
- ports 80 and 443 free (not used by another web server)
Installation
Section titled “Installation”- Server Hub → your server → Templates → Vaultwarden → Install.
- Enter a domain (e.g.
vault.your-domain.com) and your email address, and check the Let’s Encrypt terms. - Optionally enter an SMTP server (see below).
- Start installation. After about 4 minutes, you get the address and, on click, the admin token.
Afterwards
Section titled “Afterwards”- Open
https://your-domain/#/signupand create your account with the invited email address. - Choose a strong master password. It can’t be recovered – write it down.
- In the Bitwarden apps and the browser extension, choose self-hosted when logging in and enter your address as the server.
Inviting more people
Section titled “Inviting more people”At https://your-domain/admin, you log in with the admin token and invite more addresses under Users.
On VPS, mail ports 25, 465 and 587 are blocked at first. If you want to use email, use a mail service with port 2525 (STARTTLS encryption) or ask our support. You can also enter SMTP later on the admin page under SMTP Email Settings.
Backup
Section titled “Backup”Everything important is in /opt/nh-apps/vaultwarden/data. Back up the folder regularly – without a backup, your passwords are gone if something breaks. In the App tab of the Server Hub, you create a backup on the server with one click.
Files and commands
Section titled “Files and commands”| What | Where |
|---|---|
| Data | /opt/nh-apps/vaultwarden/data |
| Settings | /opt/nh-apps/vaultwarden/vaultwarden.env |
| Restart | docker restart nh-vaultwarden |
| HTTPS proxy | /opt/nh-proxy (container nh-proxy) |