-
Notifications
You must be signed in to change notification settings - Fork 88
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
Custom hook confusion #62
Comments
Hello! Indeed there is several things to explain about hooks, that are related to Certbot, the ACME client used in my Docker. Certbot recognizes three types of hooks : pre, post and deploy. Pre is executed before a certificate creation or tentative of renewal, post after it, and deploy when a certificate is actually deployed. These scripts can be passed to Certbot in two ways: by command line or in a specific location. First, the command line. You pass the name of the script as a flag to the Certbot command, like That is why in my example the Second, the specific locations. As you certainly understood now, these locations correspond to the So far so good, but verbatim capabilities of Certbot have several limitations, in particular when run in a Docker. About the flag approach, the problem is that So, I recommend the I hope I was clear, because this problematic is really not obvious, and the hooks scripts is an API we want to improve on Certbot since a long time... |
Thanks for all the info! So I'll definitely go the
Which explains why Thanks again! |
Hello... thanks for this project, it's been working great for me across many domains. :)
I'm just a little confused about the custom hook capabilities as described here.
It details creating a executable file named
deploy-hook.sh
, but doesn't mention where this file should be located?Also the example shows setting the
DEPLOY_HOOK
env var tocreate-nginx-certs
which doesn't seem to be a reference to the script name or anything in particular ?And I guess finally, I see a directory named
renewal-hooks
with subdirectories ofdeploy
,post
, andpre
, which I couldn't find documentation on. Are those used or involved in any way?Any insight would be appreciated, and sorry if I've overlooked something. Thanks!
The text was updated successfully, but these errors were encountered: