|
|
|
|
|
by sethammons
2274 days ago
|
|
I use bitwarden too, but I can't figure out how to get the cert to automatically update. I have port 443 served by Caddy2 and use that as a reverse proxy to Bitwarden, but Bitwarden wants to bind to 443 to update the cert. So, for now, it is a case of manually stopping Caddy, updating Bitwarden, and starting Caddy back up. The downtime is only acceptable because I only host personal stuff. |
|
Run the bitwardenrs container without SSL:
sudo docker pull bitwardenrs/server:raspberry
sudo docker run -d --name bitwarden --restart always -e ADMIN_TOKEN=your_admin_token -v /bw-data/:/data/ -p 80:80 bitwardenrs/server:raspberry
Proxy through Caddy (note that I'm using DuckDNS for DNS):
curl https://getcaddy.com | bash -s personal tls.dns.duckdns
nohup caddy -http-port 999 -conf /etc/caddy/Caddyfile -envfile /etc/caddy/CaddyEnvFile -agree -email YOUR_EMAIL@gmail.com &
(the port 999 is because we've already got docker container running on port 80)
Follow the examples here for the configuration: https://github.com/dani-garcia/bitwarden_rs/wiki/Proxy-examp...