Skip to content

Commit

Permalink
feat: update vaultwarden
Browse files Browse the repository at this point in the history
  • Loading branch information
netr0m committed Nov 7, 2023
1 parent e1f8cf7 commit c304af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ infra_vaultwarden_directories:
# vaultwarden container hostname
infra_vaultwarden_container_hostname: vault
# vaultwarden version
infra_vaultwarden_version: "1.29.2"
infra_vaultwarden_version: "1.30.0"
# vaultwarden container image
infra_vaultwarden_container_image: "ghcr.io/dani-garcia/vaultwarden:{{ infra_vaultwarden_version }}"
# vaultwarden container memory
Expand Down
28 changes: 4 additions & 24 deletions tasks/deploy_vaultwarden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,10 @@
- "{{ infra_vaultwarden_directories.data.path }}:/data"
labels:
traefik.enable: 'true'
# HTTP => HTTPS redirect
traefik.http.middlewares.redirect-https-mwr.redirectScheme.scheme: https
traefik.http.middlewares.redirect-https-mwr.redirectScheme.permanent: 'true'
# Web UI
traefik.http.services.vaultwarden-ui-http-svc.loadbalancer.server.port: "80"
traefik.http.services.vaultwarden-ui-ws-svc.loadbalancer.server.port: "3012"
# HTTPS
traefik.http.routers.vaultwarden-ui-https-rtr.rule: "Host(\"{{ infra_vaultwarden_container_hostname }}.{{ infra_domain }}\")"
traefik.http.routers.vaultwarden-ui-https-rtr.entrypoints: webSecure
traefik.http.routers.vaultwarden-ui-https-rtr.service: vaultwarden-ui-http-svc
# HTTP
traefik.http.routers.vaultwarden-ui-http-rtr.rule: "Host(\"{{ infra_vaultwarden_container_hostname }}.{{ infra_domain }}\")"
traefik.http.routers.vaultwarden-ui-http-rtr.entrypoints: web
traefik.http.routers.vaultwarden-ui-http-rtr.service: vaultwarden-ui-http-svc
traefik.http.routers.vaultwarden-ui-http-rtr.middlewares: redirect-https-mwr
# WSS
traefik.http.routers.vaultwarden-ui-wss-rtr.rule: "Host(\"{{ infra_vaultwarden_container_hostname }}.{{ infra_domain }}\") && Path(\"/notifications/hub\")"
traefik.http.routers.vaultwarden-ui-wss-rtr.entrypoints: webSecure
traefik.http.routers.vaultwarden-ui-wss-rtr.service: vaultwarden-ui-ws-svc
# WS
traefik.http.routers.vaultwarden-ui-ws-rtr.rule: "Host(\"{{ infra_vaultwarden_container_hostname }}.{{ infra_domain }}\") && Path(\"/notifications/hub\")"
traefik.http.routers.vaultwarden-ui-ws-rtr.entrypoints: web
traefik.http.routers.vaultwarden-ui-ws-rtr.service: vaultwarden-ui-ws-svc
traefik.http.routers.vaultwarden-ui-ws-rtr.middlewares: redirect-https-mwr
traefik.http.routers.vaultwarden-web-rtr.rule: "Host(\"{{ infra_vaultwarden_container_hostname }}.{{ infra_domain }}\")"
traefik.http.routers.vaultwarden-web-rtr.entrypoints: webSecure
traefik.http.services.vaultwarden-web-svc.loadbalancer.server.port: "80"
traefik.http.services.vaultwarden-web-svc.loadbalancer.server.scheme: http
env: "{{ infra_vaultwarden_settings | combine(infra_vaultwarden_env_vars) }}"
memory: "{{ infra_vaultwarden_container_memory | default('1g') }}"
log_driver: "{{ svc_log_driver }}"
Expand Down

0 comments on commit c304af8

Please sign in to comment.