Update for key_type global option with Caddy v2 for people sharing their LE certs between Caddy and docker-mailserver

squash 2020-10-01 14:06:51 -04:00
parent 5d992f9c09
commit 02fe537ce3
1 changed files with 13 additions and 1 deletions

@ -31,8 +31,20 @@ https://mail.domain.com {
}
}
```
For Caddy v2 you can specify the key_type in your server's global settings, which would end up looking something like this if you're using a Caddyfile:
```
{
debug
admin localhost:2019
http_port 80
https_port 443
default_sni mywebserver.com
key_type rsa4096
For Caddy v2 it is necessary to use the json structured Caddyfile. A minimal config would look something like this:
}
````
If you are instead using a json config for Caddy v2, you can set it in your site's TLS automation policies:
```
{