Skip to content

Add default ttl#50

Merged
vooon merged 4 commits into
mainfrom
add-default-ttl
May 17, 2026
Merged

Add default ttl#50
vooon merged 4 commits into
mainfrom
add-default-ttl

Conversation

@vooon
Copy link
Copy Markdown
Owner

@vooon vooon commented May 17, 2026

No description provided.

vooon added 4 commits May 17, 2026 09:33
When acme-ttl is 0 (default), no TTL is emitted and the record inherits
the zone $TTL. When set, the specified TTL is written on each ACME
challenge TXT record, which avoids newly-created entries picking up a
stale long TTL.

- Add Option/WithAcmeTTL functional option and NewWithOptions constructor
- Thread acmeTTL through DomainCtrl → File
- Add --acme-ttl CLI flag (env ZM_ACME_TTL, default 0)
- Add TestFile_UpdateACMEChallenge_WithTTL with ttl30 test data
When ttl is 0 (omitted, default), no explicit TTL is written and the
record inherits the zone $TTL. When set, the value is written on each
generated entry line.
@vooon vooon merged commit ef2d7d4 into main May 17, 2026
8 checks passed
@vooon vooon deleted the add-default-ttl branch May 17, 2026 07:45
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