mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Hook for restart Nginx after renewing #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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_certhook 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 theexit_hookwhich 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).@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 12, 2017):
@lukas2511
Please, can you give me answer ?
@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.
@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