Vaultwarden installieren
Docker installieren:
sudo apt update && sudo apt -y dist-upgrade curl -sSL -o get-docker.sh https://get.docker.com sudo sh get-docker.sh sudo usermod -aG docker $USERNAME newgrp docker
Apache-Reverse-Proxy-Konfiguration erweitern:
<Location /vaultwarden/> RewriteEngine On ProxyPass http://localhost:8081/vaultwarden/ ProxyPreserveHost On RequestHeader set X-Real-IP %{REMOTE_ADDR]s </Location>
sudo a2enmod proxy_http headers sudo service apache2 restart
Vaultwarden-Docker-Image beziehen
docker pull vaultwarden/server:latest
Container starten
docker run --detach --name vaultwarden --volume /PATH/TO/VOLUME/:/data/ --publish 8081:80 --env "DOMAIN=https://HOME.EXAMPLE.COM/vaultwarden/" --env "SIGNUPS_ALLOWED=false" --env "ADMIN_TOKEN=MY_SUPER_SECRET_ADMIN_TOKEN" --restart unless-stopped vaultwarden/server:latest
Docker als Dienst starten
sudo systemctl enable docker