Do note: the same steps have to be executed again after upgrading ADM.
Prerequisites:
- Basic understanding of Linux commands
- Vaultwarden fully installed, configured and accessible via HTTPS
- In ADM > Services > Terminal, enable SSH
- Install and configure PuTTY in order to gain access to your NAS' command line interface
- Login with your system user account and password (and if used, enter the 2-step verification code)
Code: Select all
sudo docker ps
Code: Select all
cd /volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/
Code: Select all
ls
Code: Select all
cd c97242945b9e5b7ec1267983af5632fbb4617aa6e63e3a0bc9ccf15e470463a0
Code: Select all
sudo docker inspect XXX
Code: Select all
sudo docker stop XXX
Code: Select all
sudo cp config.v2.json config.v2.json.backup
Code: Select all
sudo vi config.v2.json
Code: Select all
/env
Code: Select all
i
Code: Select all
"Env":["SIGNUPS_ALLOWED=false","ROCKET_TLS={certs=\"/ssl/ssl.crt\",key=\"/ssl/ssl.key\"}",
Code: Select all
qw
Code: Select all
sudo reboot now
After everything is up and running again, go to your Vaultwarden website (https://yourdomain.com:32301/). The Create Account link is still visible, but it's no longer able to create new accounts. Do note: That's by design according to the developers. -- If you try to create a new account the following error message is shown: An error has occurred. Registration not allowed or user already exists.
Done!
Also, remember to disable SSH again if you're not using it for anything else!