allow to change dummycert

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2023-01-06 23:16:51 +01:00
parent 5a89e9e8e8
commit e0be3a5ea3
12 changed files with 176 additions and 45 deletions

View File

@@ -43,10 +43,11 @@ const internalCertificate = {
internalCertificate.intervalProcessing = true;
logger.info('Renewing TLS certs close to expiry...');
const cmd = certbotCommand + ' renew --non-interactive --quiet ' +
const cmd = certbotCommand + ' renew --quiet ' +
'--config "' + certbotConfig + '" ' +
'--preferred-challenges "dns,http" ' +
'--disable-hook-validation';
'--no-random-sleep-on-renew ' +
'--disable-hook-validation ';
return utils.exec(cmd)
.then((result) => {
@@ -1005,11 +1006,12 @@ const internalCertificate = {
logger.info(`Renewing Certbot certificates via ${dns_plugin.display_name} for Cert #${certificate.id}: ${certificate.domain_names.join(', ')}`);
let mainCmd = certbotCommand + ' renew ' +
let mainCmd = certbotCommand + ' renew --force-renewal ' +
'--config "' + certbotConfig + '" ' +
'--cert-name "npm-' + certificate.id + '" ' +
'--disable-hook-validation ' +
'--no-random-sleep-on-renew';
'--preferred-challenges "dns,http" ' +
'--no-random-sleep-on-renew ' +
'--disable-hook-validation ';
// Prepend the path to the credentials file as an environment variable
if (certificate.meta.dns_provider === 'route53') {

View File

@@ -19,8 +19,9 @@ server {
include conf.d/include/block-exploits.conf;
add_header alt-svc 'h3=":443"; ma=86400, h3-29=":443"; ma=86400';
ssl_certificate /data/tls/dummycert.pem;
ssl_certificate_key /data/tls/dummykey.pem;
#ssl_certificate ;
#ssl_certificate_key ;
#ssl_trusted_certificate ;
{%- if value == "404" %}
location / {