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