feat: implement lot of config stuff

This commit is contained in:
Lennard Brinkhaus 2023-09-20 15:37:54 +02:00
parent 35ee0bf153
commit b98f9935ba
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,12 @@
---
vaultwarden_version: "1.29.2"
vaultwarden_identifier: "default"
vaultwarden_identifier: "default"
vaultwarden_smtp_host: ""
vaultwarden_smtp_port: ""
vaultwarden_smtp_from: ""
vaultwarden_smtp_username: ""
vaultwarden_smtp_password: ""
vaultwarden_smtp_security: ""
vaultwarden_admin_token: ""

View File

@ -7,6 +7,19 @@ Image=docker.io/vaultwarden/server:{{ vaultwarden_version }}
Environment=TZ=Europe/Berlin
Environment=DOMAIN=https://{{ vaultwarden_url }}
Environment=ROCKET_PORT=8080
Environment=SIGNUPS_ALLOWED=false
Environment=ADMIN_TOKEN={{ vaultwarden_admin_token }}
Environment=WEBSOCKET_ENABLED=true
Environment=SMTP_HOST={{ vaultwarden_smtp_host }}
Environment=SMTP_PORT={{ vaultwarden_smtp_port }}
Environment=SMTP_FROM={{ vaultwarden_smtp_from }}
Environment=SMTP_SECURITY={{ vaultwarden_smtp_security }}
Environment=SMTP_USERNAME={{ vaultwarden_smtp_username }}
Environment=SMTP_PASSWORD={{ vaultwarden_smtp_password }}
Network=traefik.network
@ -24,7 +37,7 @@ PodmanArgs=--userns=keep-id --security-opt label=disable
Label="traefik.http.routers.vaultwarden-{{ vaultwarden_identifier }}.tls.certresolver=resolver"
Label="traefik.http.routers.vaultwarden-{{ vaultwarden_identifier }}.tls=true"
Label="traefik.http.routers.vaultwarden-{{ vaultwarden_identifier }}.rule=Host(`{{ vaultwarden_url }}`)"
Label="traefik.http.routers.vaultwarden-{{ vaultwarden_identifier }}.loadbalancer.server.port=80"
Label="traefik.http.routers.vaultwarden-{{ vaultwarden_identifier }}.loadbalancer.server.port=8080"
[Service]
Restart=on-failure