mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-05 18:56:09 +08:00
Provide an option for LE cert dir (fixes #156)
This commit is contained in:
@@ -48,7 +48,7 @@ const sslConfig = (domain, global) => {
|
||||
// Let's encrypt
|
||||
if (domain.https.certType.computed === 'letsEncrypt')
|
||||
config.push(['ssl_trusted_certificate',
|
||||
`/etc/letsencrypt/live/${domain.server.domain.computed}/chain.pem`]);
|
||||
`${global.https.letsEncryptCertRoot.computed.replace(/\/+$/, '')}/${domain.server.domain.computed}/chain.pem`]);
|
||||
}
|
||||
return config;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user