From 158537ab5238fd5b9d3d0b36fa48e57e1fe8e65d Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sat, 23 Sep 2023 01:42:04 +0100 Subject: [PATCH] Properly delete irrelevant certs Re: coop-cloud/organising#54 --- compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compose.yml b/compose.yml index 6d026a2..86119ff 100644 --- a/compose.yml +++ b/compose.yml @@ -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