mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
Merge branch 'develop-o' into develop
This commit is contained in:
@@ -831,7 +831,7 @@ const internalCertificate = {
|
||||
const credentialsLocation = '/data/tls/certbot/credentials/credentials-' + certificate.id;
|
||||
// Escape single quotes and backslashes
|
||||
const escapedCredentials = certificate.meta.dns_provider_credentials.replaceAll('\'', '\\\'').replaceAll('\\', '\\\\');
|
||||
const credentialsCmd = 'mkdir -p /data/tls/certbot/credentials 2> /dev/null; echo \'' + escapedCredentials + '\' > \'' + credentialsLocation + '\' && chmod 600 \'' + credentialsLocation + '\'';
|
||||
const credentialsCmd = `echo '${escapedCredentials}' | tee '${credentialsLocation}'`;
|
||||
const prepareCmd = 'pip install --no-cache-dir ' + dns_plugin.package_name;
|
||||
|
||||
// Whether the plugin has a --<name>-credentials argument
|
||||
|
@@ -35,6 +35,12 @@ server {
|
||||
return 444;
|
||||
{%- endif %}
|
||||
|
||||
{%- if value == "444" %}
|
||||
location / {
|
||||
return 444;
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{%- if value == "redirect" %}
|
||||
location / {
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
|
Reference in New Issue
Block a user