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

Increase robustness of SSL renewing #393

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ansible/roles/letsencrypt/templates/renew-ssl-certs.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ Group=ssl-read-keys
# afterwards. It will be owned by the user and group defined above.
RuntimeDirectory=acme-challenges
RuntimeDirectoryMode=0755

# Sometimes the renew can fail, such as when the Let's Encrypt servers
# are overloaded. Give it a little break and try again.
Restart=on-failure
RestartSec=1m
4 changes: 4 additions & 0 deletions ansible/roles/letsencrypt/templates/renew-ssl-certs.timer
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ Description=Renew SSL certificates each week
OnCalendar=weekly
Persistent=true

# Add a bit of randomness to avoid hitting the Let's Encrypt servers
# at the exact same time the entire world is doing this.
RandomizedDelaySec=5m

[Install]
WantedBy=timers.target
Loading