Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CLOUDFLARE_PROPAGATION_SECONDS environment variable #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lmerega
Copy link

@lmerega lmerega commented Mar 26, 2025

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

  • If the variable is unset or empty, the parameter is omitted entirely.
  • Default Certbot behavior (10s wait) is preserved.

@lmerega lmerega force-pushed the feature/cloudflare-propagation-seconds branch from 055de34 to de82752 Compare March 26, 2025 11:14
@lmerega lmerega force-pushed the feature/cloudflare-propagation-seconds branch from de82752 to 37e6555 Compare March 26, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant