Properly delete irrelevant certs

Re: coop-cloud/organising#54
This commit is contained in:
3wc 2023-09-23 01:42:04 +01:00
parent 877a528df2
commit 158537ab52
1 changed files with 5 additions and 5 deletions

View File

@ -158,14 +158,14 @@ services:
image: ldez/traefik-certs-dumper:v2.8.1
entrypoint: sh -c '
apk add jq
; while ! [ -e /traefik/production-acme.json ]
|| ! [ `jq ".production.Certificates | length" /traefik/production-acme.json` != 0 ]; do
; while ! [ -e /traefik/${ACME_JSON} ]
|| ! [ `jq ".production.Certificates | length" /traefik/${ACME_JSON}` != 0 ]; do
sleep 1
; done
&& traefik-certs-dumper file --watch --source /traefik/production-acme.json
--dest /output --domain-subdir=true --version v2'
&& traefik-certs-dumper file --watch --source /traefik/${ACME_JSON}
--dest /output --domain-subdir=true --version v2
--post-hook "sh /usr/bin/certdumper_post.sh"'
environment:
# Make sure this is the same as the main=-domain in traefik.toml
- DOMAIN=$WEB_DOMAIN
volumes:
# Folder, which contains the acme.json