TODO: Document Kubernetes setup @mohsunb
- Caddy (first-class HTTPS support, very simple configuration)
- Fedora CoreOS (SELinux, immutable, container oriented)
Replace example.com in the configurations with your domain:
cd self-hosted
YOUR_DOMAIN='example.com'
find . -type f -exec sed -i "s/example.com/$YOUR_DOMAIN/g" {} \;Set Vaultwarden admin token:
echo -n "MySecretPassword" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4 | sed 's#\$#\$\$#g' | read VAULTWARDEN_ADMIN_TOKEN
sed -i "s/VAULTWARDEN_ADMIN_TOKEN/$VAULTWARDEN_ADMIN_TOKEN/g"- Install
caddy:
rpm-ostree install caddy- Enable and start
caddy:
systemctl enable --now caddySecrets allow us to avoid hardcoding credentials in a file and pushing it to a git server eventually.
Create a secret:
read -s SECRET
echo -n "$SECRET" | podman secret create SECRET_NAME -Populate ~/.config/containers/systemd as necessary and run:
systemctl --user daemon-reloadTo make sure the containers are not stopped when logging out, run:
loginctl enable-linger mohsun