How to install Vaultwarden (formerly known as Bitwarden RS)?
Vaultwarden, formerly known as Bitwarden RS, is an open Source but unofficial Bitwarden Server Password Manager implementation in Rust. It is much more lightweight than the official Bitwarden Server and runs nearly on any Hardware. Mostly because of this, it is recommended over the official Bitwarden Server. Of course you will need to trust the maintainer Dani Garcia when using Vaultwarden. Installing Vaultwarden enables you to manage all your passwords in the Browser on a website and will let you use all Bitwarden applications which exist for almost any platform.
Preparation
- Create a subdomain like
bw.yourdomain.com
and edit the DNS settings for this subdomain to point to your Nextcloud Domain. (instructions)
Installation
- Run over CLI:
sudo bash /var/scripts/menu.sh
- Choose
Additional Apps
->Bitwarden
->Vaultwarden
- Choose to install
Vaultwarden
- Accept the risks and confirm that if you are sure to install
Vaultwarden
- Type in the subdomain that you've created and that points to your Nextcloud domain like
bw.yourdomain.com
and confirm it - Don't use
UPNP
to open the required ports (since you've already done this for your Nextcloud) - Wait until everything is installed
- Note down the password for the admin panel that gets shown to you
- Confirm that you have the admin password now.
Vaultwarden should be successfully installed by now.
What to do now?
- You should now visit
https://bw.yourdomain.com/admin
to set up the SMTP settings for Vaultwarden (so that Vaultwarden can send mails, too.) - When you've successfully configured the SMTP settings, you should visit
https://bw.yourdomain.com/admin/users/overview
to invite a new user via mail-address. And you will be able to create an account using the link that was send to you. - After you are done creating all needed accounts, you should disable the admin panel (to make it impossible for an attacker to log into the admin panel):
- Run over CLI:
sudo bash /var/scripts/menu.sh
- Choose
Additional Apps
->Bitwarden
->Vaultwarden Admin-panel
- Choose
Yes (Disable the admin-panel)
- Wait until it reports that the admin panel was disabled
- Run over CLI:
- After creating the Vaultwarden accounts, you should activate two-factor authentication by visiting
https://bw.yourdomain.com/#/settings/two-factor
with each account.
Now, Vaultwarden is finally ready and secured as good as possible!