Skip to content

feat: share acme account across apps#409

Merged
josegonzalez merged 1 commit into
masterfrom
158-reuse-account-between-multiples-apps
May 12, 2026
Merged

feat: share acme account across apps#409
josegonzalez merged 1 commit into
masterfrom
158-reuse-account-between-multiples-apps

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

Summary

The lego accounts directory is now mounted from a shared host path so apps configured with the same email and server reuse a single ACME account instead of each registering its own. This sidesteps the Let's Encrypt 10-new-accounts-per-IP-per-3-hours limit for hosts adding HTTPS to many apps and matches Let's Encrypt's recommended one-account-per-host integration pattern. Concurrent lego invocations are serialized with flock against a lockfile in the shared directory because lego itself does not lock its account store. letsencrypt:revoke falls back to the per-app account when the shared directory has no matching entry, so certificates issued before the upgrade can still be revoked.

Closes #158

The lego accounts directory is now mounted from a shared host path so apps configured with the same `email` and `server` reuse a single ACME account instead of each registering its own. This sidesteps the Let's Encrypt 10-new-accounts-per-IP-per-3-hours limit for hosts adding HTTPS to many apps and matches Let's Encrypt's recommended one-account-per-host integration pattern. Concurrent lego invocations are serialized with `flock` against a lockfile in the shared directory because lego itself does not lock its account store. `letsencrypt:revoke` falls back to the per-app account when the shared directory has no matching entry, so certificates issued before the upgrade can still be revoked.
@josegonzalez josegonzalez merged commit 60c91ed into master May 12, 2026
2 checks passed
@josegonzalez josegonzalez deleted the 158-reuse-account-between-multiples-apps branch May 12, 2026 21:46
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.

Reuse account between multiples apps

1 participant