Skip to content

Commit 536f08e

Browse files
authored
Merge branch 'jlesage:master' into master
2 parents bf8c7c9 + 4b7384b commit 536f08e

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG DOCKER_IMAGE_VERSION=
99

1010
# Define software versions.
1111
ARG OPENRESTY_VERSION=1.19.9.1
12-
ARG NGINX_PROXY_MANAGER_VERSION=2.9.21
12+
ARG NGINX_PROXY_MANAGER_VERSION=2.9.22
1313
ARG NGINX_HTTP_GEOIP2_MODULE_VERSION=3.3
1414
ARG LIBMAXMINDDB_VERSION=1.5.0
1515
ARG BCRYPT_TOOL_VERSION=1.1.2

appdefs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ app:
9797
- `CONTAINER_NAME` is the name of the running container.
9898
- `USER_EMAIL` is the email of the address to reset the password.
9999
changelog:
100+
- version: 23.04.1
101+
date: 2023-04-07
102+
changes:
103+
- 'Updated Nginx Proxy Manager to version 2.9.22.'
100104
- version: 23.03.2
101105
date: 2023-03-05
102106
changes:

src/nginx-proxy-manager/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ curl -# -L -f ${NGINX_PROXY_MANAGER_URL} | tar xz --strip 1 -C /tmp/nginx-proxy-
7373
sed -i "s/\"version\": \"0.0.0\",/\"version\": \"${NGINX_PROXY_MANAGER_VERSION}\",/" /tmp/nginx-proxy-manager/frontend/package.json
7474
sed -i "s/\"version\": \"0.0.0\",/\"version\": \"${NGINX_PROXY_MANAGER_VERSION}\",/" /tmp/nginx-proxy-manager/backend/package.json
7575

76+
log "Patching Nginx Proxy Manager backend..."
77+
patch -p1 -d /tmp/nginx-proxy-manager < "$SCRIPT_DIR"/pip-install.patch
78+
7679
cp -r /tmp/nginx-proxy-manager /app
7780

7881
log "Building Nginx Proxy Manager frontend..."
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/backend/internal/certificate.js b/backend/internal/certificate.js
2+
index da104a2..730d826 100644
3+
--- a/backend/internal/certificate.js
4+
+++ b/backend/internal/certificate.js
5+
@@ -871,7 +871,7 @@ const internalCertificate = {
6+
const escapedCredentials = certificate.meta.dns_provider_credentials.replaceAll('\'', '\\\'').replaceAll('\\', '\\\\');
7+
const credentialsCmd = 'mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo \'' + escapedCredentials + '\' > \'' + credentialsLocation + '\' && chmod 600 \'' + credentialsLocation + '\'';
8+
// we call `. /opt/certbot/bin/activate` (`.` is alternative to `source` in dash) to access certbot venv
9+
- let prepareCmd = '. /opt/certbot/bin/activate && pip install ' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies + ' && deactivate';
10+
+ let prepareCmd = 'pip install ' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies;
11+
12+
// Whether the plugin has a --<name>-credentials argument
13+
const hasConfigArg = certificate.meta.dns_provider !== 'route53';
14+
diff --git a/backend/setup.js b/backend/setup.js
15+
index a4b51c9..6d3d3e3 100644
16+
--- a/backend/setup.js
17+
+++ b/backend/setup.js
18+
@@ -189,7 +189,7 @@ const setupCertbotPlugins = () => {
19+
});
20+
21+
if (plugins.length) {
22+
- const install_cmd = '. /opt/certbot/bin/activate && pip install ' + plugins.join(' ') + ' && deactivate';
23+
+ const install_cmd = 'pip install ' + plugins.join(' ');
24+
promises.push(utils.exec(install_cmd));
25+
}
26+

0 commit comments

Comments
 (0)