192 |
- |
1 |
## NOTE ##
|
|
|
2 |
# If a hook is set here then it will be used for all
|
|
|
3 |
# certificates and will override any per certificate
|
|
|
4 |
# hook configuration in place.
|
|
|
5 |
|
|
|
6 |
# Command to be run in a shell before obtaining any
|
|
|
7 |
# certificates. Intended primarily for renewal, where it
|
|
|
8 |
# can be used to temporarily shut down a webserver that
|
|
|
9 |
# might conflict with the standalone plugin. This will
|
|
|
10 |
# only be called if a certificate is actually to be
|
|
|
11 |
# obtained/renewed. When renewing several certificates
|
|
|
12 |
# that have identical pre-hooks, only the first will be
|
|
|
13 |
# executed.
|
|
|
14 |
#
|
|
|
15 |
# An example to stop the MTA before updating certs would be
|
|
|
16 |
# PRE_HOOK="--pre-hook 'systemctl stop postfix'"
|
|
|
17 |
PRE_HOOK=""
|
|
|
18 |
|
|
|
19 |
# Command to be run in a shell after attempting to
|
|
|
20 |
# obtain/renew certificates. Can be used to deploy
|
|
|
21 |
# renewed certificates, or to restart any servers that
|
|
|
22 |
# were stopped by --pre-hook. This is only run if an
|
|
|
23 |
# attempt was made to obtain/renew a certificate. If
|
|
|
24 |
# multiple renewed certificates have identical post-
|
|
|
25 |
# hooks, only one will be run.
|
|
|
26 |
#
|
|
|
27 |
# An example to restart httpd would be:
|
|
|
28 |
# POST_HOOK="--post-hook 'systemctl restart httpd'"
|
|
|
29 |
POST_HOOK=""
|
|
|
30 |
|
|
|
31 |
# Command to be run in a shell once for each
|
|
|
32 |
# successfully renewed certificate. For this command,
|
|
|
33 |
# the shell variable $RENEWED_LINEAGE will point to the
|
|
|
34 |
# config live subdirectory containing the new certs and
|
|
|
35 |
# keys; the shell variable $RENEWED_DOMAINS will contain
|
|
|
36 |
# a space-delimited list of renewed cert domains
|
|
|
37 |
#
|
|
|
38 |
# An example to run a script to alert each cert would be:
|
|
|
39 |
# DEPLOY_HOOK="--deploy-hook /usr/local/bin/cert-notifier.sh"
|
|
|
40 |
DEPLOY_HOOK=""
|
|
|
41 |
|
|
|
42 |
# Any other misc arguments for the renewal
|
|
|
43 |
# See certbot -h renew for full list
|
|
|
44 |
#
|
|
|
45 |
# An example to force renewal for certificates not due yet
|
|
|
46 |
# CERTBOT_ARGS="--force-renewal"
|
|
|
47 |
CERTBOT_ARGS=""
|
|
|
48 |
|