Hook for restart Nginx after renewing #233

Closed
opened 2025-12-29 01:19:28 +01:00 by adam · 5 comments
Owner

Originally created by @petarkozic on GitHub (Jul 10, 2017).

Hi, because this script is used on mailcow mail instances, after each renewing, Nginx stop working and mail stop receiving due to restart Nginx.

Does this script have some hooks for restarting Nginx after renewing.

Thanks!

Originally created by @petarkozic on GitHub (Jul 10, 2017). Hi, because this script is used on mailcow mail instances, after each renewing, Nginx stop working and mail stop receiving due to restart Nginx. Does this script have some hooks for restarting Nginx after renewing. Thanks!
adam closed this issue 2025-12-29 01:19:29 +01:00
Author
Owner

@lukas2511 commented on GitHub (Jul 10, 2017):

Please, if you gonna ask these questions read the documentation first. I'll answer anyway, but these already answered questions are annoying...

Basically you can use two hooks, one would be the deploy_cert hook which gets called after a new certificate has been issued (normally to copy it somewhere, but you don't need to do that, you can just reload your webserver), or you could use the exit_hook which gets called after every run (for a small webserver which probably is only used for some webmail and the challenge tokens a reload a week probably won't hurt anybody).

@lukas2511 commented on GitHub (Jul 10, 2017): Please, if you gonna ask these questions read the documentation first. I'll answer anyway, but these already answered questions are annoying... Basically you can use two hooks, one would be the `deploy_cert` hook which gets called after a new certificate has been issued (normally to copy it somewhere, but you don't need to do that, you can just reload your webserver), or you could use the `exit_hook` which gets called after every run (for a small webserver which probably is only used for some webmail and the challenge tokens a reload a week probably won't hurt anybody).
Author
Owner

@petarkozic commented on GitHub (Jul 10, 2017):

@lukas2511
Thank you lukas on answer.
Sorry for spam !
I know, you close this issue, but I read documentation and I don't understand how to integrate that. I'm newbie, I'm using mailcow instance with yours script and config file.
Please, if you can help me how to integrate this.

@petarkozic commented on GitHub (Jul 10, 2017): @lukas2511 Thank you lukas on answer. Sorry for spam ! I know, you close this issue, but I read documentation and I don't understand how to integrate that. I'm newbie, I'm using mailcow instance with yours script and config file. Please, if you can help me how to integrate this.
Author
Owner

@petarkozic commented on GitHub (Jul 12, 2017):

@lukas2511
Please, can you give me answer ?

@petarkozic commented on GitHub (Jul 12, 2017): @lukas2511 Please, can you give me answer ?
Author
Owner

@txr13 commented on GitHub (Jul 12, 2017):

@petarkozic I would suggest using the example hook in the documentation, and customizing the desired function from there. Make sure the function is white-listed and the hook is set correctly in your config / calling script.

@txr13 commented on GitHub (Jul 12, 2017): @petarkozic I would suggest using the example hook in the documentation, and customizing the desired function from there. Make sure the function is white-listed and the hook is set correctly in your config / calling script.
Author
Owner

@lukas2511 commented on GitHub (Jul 12, 2017):

@petarkozic sorry I'll not be holding your hand going through this, I'd recommend reading the documentation and looking at howtos and examples that other people already published

@lukas2511 commented on GitHub (Jul 12, 2017): @petarkozic sorry I'll not be holding your hand going through this, I'd recommend reading the documentation and looking at howtos and examples that other people already published
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#233