feat: vaultwarden setup

This commit is contained in:
CoolnsX
2025-10-01 01:26:45 +05:30
parent 92cfc7bcc1
commit adff932635
2 changed files with 39 additions and 0 deletions

17
vaultwarden/env.example Normal file
View File

@@ -0,0 +1,17 @@
# base config
DOMAIN=https://vw.example.com
SIGNUPS_ALLOWED=false
INVITATIONS_ALLOWED=false
# smtp config
SMTP_HOST=smtp.example.com
SMTP_FROM=mail@example.com
SMTP_FROM_NAME=Vaultwarden
SMTP_USERNAME=username
SMTP_PASSWORD=
SMTP_TIMEOUT=15
SMTP_SECURITY=force_tls
SMTP_PORT=465
# rocket http configuration
ROCKET_PORT=7777

View File

@@ -0,0 +1,22 @@
[Unit]
Description=VaultWarden Container
[Container]
ContainerName=vaultwarden
Image=ghcr.io/dani-garcia/vaultwarden:alpine
# Enable auto-update container
AutoUpdate=registry
EnvironmentFile=./.env
Network=host
Volume=%h/podman/vaultwarden:/data
[Service]
EnvironmentFile=%h/.config/containers/systemd/vaultwarden/.env
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target