Skip to content

Commit

Permalink
Merge pull request #146 from raisercostin/patch-2
Browse files Browse the repository at this point in the history
Update certbot-config.md
  • Loading branch information
githubsaturn authored Dec 10, 2024
2 parents 74e25ab + 3e47f7b commit db5e315
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/certbot-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ Edit `/captain/data/config-override.json` by running:
nano /captain/data/config-override.json
```

Then enter the following blob. Make sure to replace `your/repo:certbot-sleeping` and change `certbotCertCommand` to fit your needs.
Then enter the following blob. Make sure to replace `your/repo:certbot-sleeping` and change `certbotCertCommand` to fit your needs.

For example for a wildcard certificate you need one certificate for domain and also one for subdomains. You need to add them like this `-d ${domainName} -d \"*.${domainName}\"`.

```json
{
Expand All @@ -69,7 +71,7 @@ Then enter the following blob. Make sure to replace `your/repo:certbot-sleeping`
"certbotCertCommandRules": [
{
"domain": "*",
"command": "certbot certonly --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/captain-files/mycreds.ini -d ${domainName}"
"command": "certbot certonly --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/captain-files/mycreds.ini -d ${domainName} -d \"*.${domainName}\""
}
]
}
Expand Down

0 comments on commit db5e315

Please sign in to comment.