by yingw787 · 6y ago · 0 comments
I personally use Bitwarden, also because it's free and open source software, and because the cloud managed option is $10 / year. I've found the GUI to be very well-made for a heavy keyboard user like me. I also second a curses-based terminal interface for password management, I think it'll be really useful!
With a requirement to pay extra $5 on your server instance monthly for more memory to self host the official version, you'll be paying a lot more than $10/year.
That being said, I use Bitwarden and it's great.
If you build a great product people need, it's not a headspinner why people would use it and buy it. Hopefully going into this recession we'll see more products with that lesson baked in.
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...
Instructions here: https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-compan...
Bitwarden also has a CLI, so it's probably do-able to create something like this.
I built envwarden[0] on top of the CLI, which lets us manage our server secrets with Bitwarden.