Skip to content

Commit e012356

Browse files
authored
Merge pull request #5 from 2sheds/certbot-custom-args
Support for custom plugin and more certbot args
2 parents 9ef90f7 + 6277f44 commit e012356

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ The following volumes of interest can be mounted on the docker host or as docker
3535

3636
#### Environment variables:
3737
- **WEBROOT** : (optional) path to the host's web server root. If provided, letsencrypt will use the given existing web server to request and validate the certificates. If not provided, letsencrypt will launch it's own web server for this purpose
38+
- **PLUGIN** : (optional, defaults to `standalone`) A `certbot` plugin to use (e.g. `manual`)
3839
- **PREFERRED_CHALLENGES** : (optional, defaults to http-01) A sorted, comma delimited list of the preferred challenge to use during authorization with the most preferred challenge listed first (eg. "dns" or "tls-alpn-01,http,dns"). NOTE: tls-alpn-01 challenge is yet not supported by certbot 0.31.0
40+
- **CUSTOM_ARGS** : (optional) Additional `certbot` command-line options (e.g. `--redirect`), refer to certbot [documentation](https://certbot.eff.org/docs/using.html#certbot-command-line-options)
3941
- **LOGFILE** : (optional) path of a file where to write the logs from the certificate request/renewal script. When not provided both stdout/stderr are directed to console which is convenient when using a docker log driver
40-
- **DEBUG** : (optional) whether to run letsencrypt in debug mode, refer to certbot [documentation] (https://certbot.eff.org/docs/using.html#certbot-command-line-options)
41-
- **STAGING** : (optional) whether to run letsencrypt in staging mode, refer to certbot [documentation] (https://certbot.eff.org/docs/using.html#certbot-command-line-options)
42+
- **DEBUG** : (optional) whether to run letsencrypt in debug mode, refer to certbot [documentation](https://certbot.eff.org/docs/using.html#certbot-command-line-options)
43+
- **STAGING** : (optional) whether to run letsencrypt in staging mode, refer to certbot [documentation](https://certbot.eff.org/docs/using.html#certbot-command-line-options)
4244
- **DOMAINS** : space separated list of comma separated subdomains to register the certificate with, for example:
4345
- `my.domain.com`
4446
- `sub.domain1.com,sub.domain2.com`

scripts/run_certbot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ CERTBOT_ARGS=""
131131
if [ $WEBROOT ]; then
132132
CERTBOT_ARGS=" --webroot -w $WEBROOT"
133133
else
134-
CERTBOT_ARGS=" --standalone --preferred-challenges ${PREFERRED_CHALLENGES:-http-01}"
134+
CERTBOT_ARGS=" --${PLUGIN:-standalone} --preferred-challenges ${PREFERRED_CHALLENGES:-http-01} ${CUSTOM_ARGS}"
135135
fi
136136

137137
# activate debug mode

0 commit comments

Comments
 (0)