Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions backend/internal/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,13 @@ const internalCertificate = {
certificate.domain_names.join(','),
];

if (process.env.CERT_KEY_TYPE) {
args.push('--key-type', process.env.CERT_KEY_TYPE);
}
if (process.env.CERT_ELLIPTIC_CURVE) {
args.push('--elliptic-curve', process.env.CERT_ELLIPTIC_CURVE);
}

const adds = internalCertificate.getAdditionalCertbotArgs(certificate.id);
args.push(...adds.args);

Expand Down Expand Up @@ -907,6 +914,13 @@ const internalCertificate = {
dnsPlugin.full_plugin_name,
];

if (process.env.CERT_KEY_TYPE) {
args.push('--key-type', process.env.CERT_KEY_TYPE);
}
if (process.env.CERT_ELLIPTIC_CURVE) {
args.push('--elliptic-curve', process.env.CERT_ELLIPTIC_CURVE);
}

if (hasConfigArg) {
args.push(`--${dnsPlugin.full_plugin_name}-credentials`, credentialsLocation);
}
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ ENV SUPPRESS_NO_CONFIG_WARNING=1 \
NPM_BUILD_VERSION="${BUILD_VERSION}" \
NPM_BUILD_COMMIT="${BUILD_COMMIT}" \
NPM_BUILD_DATE="${BUILD_DATE}" \
NODE_OPTIONS="--openssl-legacy-provider"
NODE_OPTIONS="--openssl-legacy-provider" \
CERT_KEY_TYPE="" \
CERT_ELLIPTIC_CURVE=""

RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
&& apt-get update \
Expand Down