You've already forked nginx-proxy-manager
mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-01 05:31:05 +03:00
Fix creating wrong cert type when trying dns
This commit is contained in:
@@ -20,6 +20,8 @@ import internalNginx from "./nginx.js";
|
||||
|
||||
const letsencryptConfig = "/etc/letsencrypt.ini";
|
||||
const certbotCommand = "certbot";
|
||||
const certbotLogsDir = "/data/logs";
|
||||
const certbotWorkDir = "/tmp/letsencrypt-lib";
|
||||
|
||||
const omissions = () => {
|
||||
return ["is_deleted", "owner.is_deleted"];
|
||||
@@ -830,18 +832,18 @@ const internalCertificate = {
|
||||
"--config",
|
||||
letsencryptConfig,
|
||||
"--work-dir",
|
||||
"/tmp/letsencrypt-lib",
|
||||
certbotWorkDir,
|
||||
"--logs-dir",
|
||||
"/tmp/letsencrypt-log",
|
||||
certbotLogsDir,
|
||||
"--cert-name",
|
||||
`npm-${certificate.id}`,
|
||||
"--agree-tos",
|
||||
"--authenticator",
|
||||
"webroot",
|
||||
"--email",
|
||||
"-m",
|
||||
email,
|
||||
"--preferred-challenges",
|
||||
"dns,http",
|
||||
"http",
|
||||
"--domains",
|
||||
certificate.domain_names.join(","),
|
||||
];
|
||||
@@ -884,14 +886,16 @@ const internalCertificate = {
|
||||
"--config",
|
||||
letsencryptConfig,
|
||||
"--work-dir",
|
||||
"/tmp/letsencrypt-lib",
|
||||
certbotWorkDir,
|
||||
"--logs-dir",
|
||||
"/tmp/letsencrypt-log",
|
||||
certbotLogsDir,
|
||||
"--cert-name",
|
||||
`npm-${certificate.id}`,
|
||||
"--agree-tos",
|
||||
"--email",
|
||||
"-m",
|
||||
email,
|
||||
"--preferred-challenges",
|
||||
"dns",
|
||||
"--domains",
|
||||
certificate.domain_names.join(","),
|
||||
"--authenticator",
|
||||
@@ -987,13 +991,13 @@ const internalCertificate = {
|
||||
"--config",
|
||||
letsencryptConfig,
|
||||
"--work-dir",
|
||||
"/tmp/letsencrypt-lib",
|
||||
certbotWorkDir,
|
||||
"--logs-dir",
|
||||
"/tmp/letsencrypt-log",
|
||||
certbotLogsDir,
|
||||
"--cert-name",
|
||||
`npm-${certificate.id}`,
|
||||
"--preferred-challenges",
|
||||
"dns,http",
|
||||
"http",
|
||||
"--no-random-sleep-on-renew",
|
||||
"--disable-hook-validation",
|
||||
];
|
||||
@@ -1031,11 +1035,13 @@ const internalCertificate = {
|
||||
"--config",
|
||||
letsencryptConfig,
|
||||
"--work-dir",
|
||||
"/tmp/letsencrypt-lib",
|
||||
certbotWorkDir,
|
||||
"--logs-dir",
|
||||
"/tmp/letsencrypt-log",
|
||||
certbotLogsDir,
|
||||
"--cert-name",
|
||||
`npm-${certificate.id}`,
|
||||
"--preferred-challenges",
|
||||
"dns",
|
||||
"--disable-hook-validation",
|
||||
"--no-random-sleep-on-renew",
|
||||
];
|
||||
@@ -1068,9 +1074,9 @@ const internalCertificate = {
|
||||
"--config",
|
||||
letsencryptConfig,
|
||||
"--work-dir",
|
||||
"/tmp/letsencrypt-lib",
|
||||
certbotWorkDir,
|
||||
"--logs-dir",
|
||||
"/tmp/letsencrypt-log",
|
||||
certbotLogsDir,
|
||||
"--cert-path",
|
||||
`${internalCertificate.getLiveCertPath(certificate.id)}/fullchain.pem`,
|
||||
"--delete-after-revoke",
|
||||
|
||||
Reference in New Issue
Block a user