Add support for CLOUDFLARE_PROPAGATION_SECONDS environment variable #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds support for the
CLOUDFLARE_PROPAGATION_SECONDS
environment variable,which is passed as an optional argument to Certbot:
--dns-cloudflare-propagation-seconds
If the variable is not defined, the argument is omitted and Certbot uses the default value (10 seconds).
Why is this useful?
In some cases, DNS TXT records may take longer than 10 seconds to propagate, depending on DNS caching or specific configurations on Cloudflare.
Allowing the propagation time to be configured helps avoid issues during domain validation with Let's Encrypt.
How to use
Simply define the variable when running the container, for example:
docker run -e CLOUDFLARE_PROPAGATION_SECONDS=30 ...
This will make Certbot wait 30 seconds before attempting domain validation.
Notes