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

Reloading Nginx even if some Let's Encrypt certificates renewals has failed #1207

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

brenoalvs
Copy link
Contributor

@brenoalvs brenoalvs commented Jul 21, 2020

Sometimes you can have just one or a few of your sites failing in the Let's Encrypt certificate renewal process.
When this occurs, if one of the others sites have its certificate renewed Nginx will not be reloaded which may break things.

This PR is a proposal to fix this issue by reloading Nginx anyways.

Another option could be modifying how the renewal script will terminate in these cases.
But I can't see any huge difference by doing this instead.

@brenoalvs brenoalvs changed the title Reloading Nginx even if some certificates renewals has failed Reloading Nginx even if some Let's Encrypt certificates renewals has failed Jul 21, 2020
@swalkinshaw
Copy link
Member

Good idea 👍 Honestly I just default to using && so mostly an oversight I'm guessing.

@swalkinshaw swalkinshaw merged commit 0b0ccce into roots:master Jul 21, 2020
@brenoalvs
Copy link
Contributor Author

Leaving some credits to @viniciusrezende
We've fixed this in our Trellis fork a long time ago, now I'm upgrading to the latest version and I've remembered to share.

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.

2 participants