Skip to content

Commit 83c9dfc

Browse files
committed
Fixed the default site for HTTPs.
1 parent 60b7d1b commit 83c9dfc

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RUN \
7070
curl -# -L ${NGINX_PROXY_MANAGER_URL} | tar xz --strip 1 -C nginx-proxy-manager && \
7171

7272
# Patch.
73-
curl -# -L https://github.com/jlesage/nginx-proxy-manager/commit/0aa1cb0aa.patch | patch -d nginx-proxy-manager -p1 && \
73+
curl -# -L https://github.com/jlesage/nginx-proxy-manager/commit/20fd18565.patch | patch -d nginx-proxy-manager -p1 || true && \
7474

7575
# Build Nginx Proxy Manager.
7676
echo "Building Nginx Proxy Manager..." && \

rootfs/etc/cont-init.d/nginx-proxy-manager.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ if [ ! -d /config/mysql ]; then
8585
fi
8686
fi
8787

88+
# Generate dummy self-signed certificate.
89+
if [ ! -f /config/nginx/dummycert.pem ] || [ ! -f /config/nginx/dummykey.pem ]
90+
then
91+
env HOME=/tmp openssl req \
92+
-new \
93+
-newkey rsa:2048 \
94+
-days 3650 \
95+
-nodes \
96+
-x509 \
97+
-subj '/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost' \
98+
-keyout /config/nginx/dummykey.pem \
99+
-out /config/nginx/dummycert.pem \
100+
> /dev/null 2>&1
101+
fi
102+
88103
# Take ownership of the config directory content.
89104
find /config -mindepth 1 -exec chown $USER_ID:$GROUP_ID {} \;
90105

0 commit comments

Comments
 (0)