I have the following Caddyfile:
{
admin unix//var/run/caddy/caddy-admin.sock
auto_https disable_certs
servers {
metrics
}
}
:2019 {
metrics
}
subdomain.example1.com *.example2.com :443 {
root * /opt/app/public
php_fastcgi unix//var/run/php-fpm/default.sock
file_server
tls /etc/pki/tls/certs/example1.crt /etc/pki/tls/private/example1.key {
ciphers TLS_AES_256_GCM_SHA384 TLS_AES_128_GCM_SHA256 TLS_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
}
tls /etc/pki/tls/certs/example2.crt /etc/pki/tls/private/example2.key {
ciphers TLS_AES_256_GCM_SHA384 TLS_AES_128_GCM_SHA256 TLS_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
}
encode zstd gzip
}
The two tls blocks provide an SSL certificate for subdomain.example1.com and *.example2.com.
Despite SSL certificates already being provided and auto_https being set to disable_certs, Caddy still attempts to provide replacement SSL certificates via ACME. Setting auto_https to off resolves this but disables other functionality we require.
Is this a bug or is something wrong in our config?
I have the following Caddyfile:
The two
tlsblocks provide an SSL certificate forsubdomain.example1.comand*.example2.com.Despite SSL certificates already being provided and
auto_httpsbeing set todisable_certs, Caddy still attempts to provide replacement SSL certificates via ACME. Settingauto_httpstooffresolves this but disables other functionality we require.Is this a bug or is something wrong in our config?