From 5c5a204872914edf435ae2152b3311b58b3ee34b Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 9 Jun 2023 18:03:50 +0200 Subject: [PATCH] Fix vaultwarden no https --- roles/traefik/templates/config/traefik.yml.j2 | 2 +- roles/vaultwarden/templates/docker-compose.yml.j2 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/traefik/templates/config/traefik.yml.j2 b/roles/traefik/templates/config/traefik.yml.j2 index ba8e4e3..fadd266 100644 --- a/roles/traefik/templates/config/traefik.yml.j2 +++ b/roles/traefik/templates/config/traefik.yml.j2 @@ -43,7 +43,7 @@ certificatesResolvers: sslResolver: acme: email: {{ acme.email }} - tlschallenge: {} + tlsChallenge: {} storage: acme.json keyType: RSA4096 {% if acme.debug %} diff --git a/roles/vaultwarden/templates/docker-compose.yml.j2 b/roles/vaultwarden/templates/docker-compose.yml.j2 index 563d7de..2639ca1 100644 --- a/roles/vaultwarden/templates/docker-compose.yml.j2 +++ b/roles/vaultwarden/templates/docker-compose.yml.j2 @@ -31,6 +31,7 @@ services: - traefik.http.routers.bitwarden-ui-https.rule=Host(`pwds.{{ server.domain }}`) - traefik.http.routers.bitwarden-ui-https.entrypoints=https - traefik.http.routers.bitwarden-ui-https.tls=true + - traefik.http.routers.bitwarden-ui-https.tls.certresolver=sslResolver - traefik.http.routers.bitwarden-ui-https.service=bitwarden-ui - traefik.http.routers.bitwarden-ui-http.rule=Host(`pwds.{{ server.domain }}`) - traefik.http.routers.bitwarden-ui-http.entrypoints=http @@ -40,6 +41,7 @@ services: - traefik.http.routers.bitwarden-websocket-https.rule=Host(`pwds.{{ server.domain }}`) && Path(`/notifications/hub`) - traefik.http.routers.bitwarden-websocket-https.entrypoints=https - traefik.http.routers.bitwarden-websocket-https.tls=true + - traefik.http.routers.bitwarden-websocket-https.tls.certresolver=sslResolver - traefik.http.routers.bitwarden-websocket-https.service=bitwarden-websocket - traefik.http.routers.bitwarden-websocket-http.rule=Host(`pwds.{{ server.domain }}`) && Path(`/notifications/hub`) - traefik.http.routers.bitwarden-websocket-http.entrypoints=http