New Updates
This commit is contained in:
parent
04ce5baaa3
commit
5cebe63739
@ -6,7 +6,7 @@ ## Usage:
|
||||
chmod +x certbot-docker-script/generate-certs.sh
|
||||
```
|
||||
3. Create `certs` folder inside `ssl` folder.
|
||||
4. Put `config.sh` inside `ssl` folder.
|
||||
4. Create `config.sh` inside `ssl` folder.
|
||||
- Copy contents from [config-example.sh](https://git.w3goodies.com/mehdi-mac/certbot-docker-script/src/branch/main/config-example.sh)
|
||||
- Modify it to your needs.
|
||||
5. The folder structure would be:
|
||||
|
@ -6,20 +6,25 @@ dry_run=true
|
||||
cloudflare_token=''
|
||||
|
||||
#Set location for certificates to store in.
|
||||
#It's relative to certbot-docker-script folder.
|
||||
#Leave it default if you're following instructions from README.md
|
||||
certs_dir="../certs/"
|
||||
|
||||
#Script will create certificate for domain.com and as well as *.domain.com (wildcard)
|
||||
domain="test.com"
|
||||
|
||||
#Email to receive expiration notices or other mails from certbot
|
||||
#Email to receive expiration notices or other mails from certbot.
|
||||
email="w3goodies.com@gmail.com"
|
||||
|
||||
#Generate certificates using this command.
|
||||
#New certificates are created using this command.
|
||||
#Script will generate certificate for domain.com and as well as *.domain.com (wildcard)
|
||||
new_ssl_command="docker run --rm -v #certs_dir#:/etc/letsencrypt -v #cloudflare_token_file#:/certbot-cloudflare certbot/dns-cloudflare certonly #dry_run_arg# #domain_arg# --dns-cloudflare --dns-cloudflare-credentials /certbot-cloudflare --preferred-challenges dns-01 --preferred-chain 'ISRG Root X1' --non-interactive --dns-cloudflare-propagation-seconds 20 --agree-tos #email_arg#";
|
||||
|
||||
#domains cant be changed in renewal. If you want to change, then clear certs/* folder and regenerate certificates.
|
||||
#If the certificate already exist, then renewal command is used to renew certificates.
|
||||
#Domains cant be changed in renewal. If you want to change, then clear certs/* folder and regenerate certificates.
|
||||
renew_command="docker run --rm -v #certs_dir#:/etc/letsencrypt -v #cloudflare_token_file#:/certbot-cloudflare certbot/dns-cloudflare renew #dry_run_arg# --non-interactive --agree-tos --email w3goodies.com@gmail.com --no-random-sleep-on-renew"
|
||||
|
||||
#posthook is executed if certificate is created for first time, or if "${live_certs_dir}/cert.pem" file is modified (based on checking last modified time).
|
||||
#posthook is only executed:
|
||||
# if certificate is created for first time,
|
||||
# or if certificate (live/yourdomain.com/cert.pem) file is modified (based on checking last modified time).
|
||||
post_hook="echo 'dummy post hook result'"
|
Loading…
Reference in New Issue
Block a user