From 42ddbcb580e7a68a78432da6bea7f8118af6aee2 Mon Sep 17 00:00:00 2001 From: Danil Smirnov Date: Tue, 29 Dec 2020 15:09:03 +0200 Subject: [PATCH] Renaming and adding documentation --- app/letsencrypt_service | 6 +++--- docs/Container-configuration.md | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/letsencrypt_service b/app/letsencrypt_service index 156213e..bd53cc0 100755 --- a/app/letsencrypt_service +++ b/app/letsencrypt_service @@ -3,7 +3,7 @@ # shellcheck source=functions.sh source /app/functions.sh -SECONDS_TO_WAIT="${SECONDS_TO_WAIT:-3600}" +CERTS_UPDATE_INTERVAL="${CERTS_UPDATE_INTERVAL:-3600}" ACME_CA_URI="${ACME_CA_URI:-"https://acme-v02.api.letsencrypt.org/directory"}" ACME_CA_TEST_URI="https://acme-staging-v02.api.letsencrypt.org/directory" DEFAULT_KEY_SIZE="${DEFAULT_KEY_SIZE:-4096}" @@ -418,7 +418,7 @@ trap 'trap - EXIT' INT TERM update_certs "$@" # Wait some amount of time -echo "Sleep for ${SECONDS_TO_WAIT}s" -sleep $SECONDS_TO_WAIT & pid=$! +echo "Sleep for ${CERTS_UPDATE_INTERVAL}s" +sleep $CERTS_UPDATE_INTERVAL & pid=$! wait pid= diff --git a/docs/Container-configuration.md b/docs/Container-configuration.md index bec12f5..ef7359f 100644 --- a/docs/Container-configuration.md +++ b/docs/Container-configuration.md @@ -23,4 +23,6 @@ You can also create test certificates per container (see [Test certificates](./L * `DHPARAM_BITS` - Change the size of the Diffie-Hellman key generated by the container from the default value of 2048 bits. For example `--env DHPARAM_BITS=1024` to support some older clients like Java 6 and 7. -* `CA_BUNDLE` - This is a test only variable [for use with Pebble](https://github.com/letsencrypt/pebble#avoiding-client-https-errors). It changes the trusted root CA used by `acme.sh`, from the default Alpine trust store to the CA bundle file located at the provided path (inside the container). Do **not** use it in production unless you are running your own ACME CA. \ No newline at end of file +* `CA_BUNDLE` - This is a test only variable [for use with Pebble](https://github.com/letsencrypt/pebble#avoiding-client-https-errors). It changes the trusted root CA used by `acme.sh`, from the default Alpine trust store to the CA bundle file located at the provided path (inside the container). Do **not** use it in production unless you are running your own ACME CA. + +* `CERTS_UPDATE_INTERVAL` - 1 hour by default, this defines how often the container will check if the certificates require update. \ No newline at end of file