Set interval timeout for certs via environment variable

This commit is contained in:
Dan Osborne
2024-04-15 09:15:07 +01:00
parent d40f9e06fc
commit f1327c2de7

View File

@@ -29,7 +29,7 @@ function omissions() {
const internalCertificate = {
allowedSslFiles: ['certificate', 'certificate_key', 'intermediate_certificate'],
intervalTimeout: 1000 * 60 * 60, // 1 hour
intervalTimeout: process.env.CERT_INTERVAL_TIMEOUT || 1000 * 60 * 60, // Value (ms) OR default of 1 hour
interval: null,
intervalProcessing: false,
renewBeforeExpirationBy: [30, 'days'],