Skip to content

Commit dea4713

Browse files
committed
Added a default site for HTTPs.
1 parent f531047 commit dea4713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ RUN \
5252
add-pkg --virtual build-dependencies \
5353
build-base \
5454
curl \
55+
patch \
5556
yarn \
5657
git \
5758
python \
@@ -68,6 +69,9 @@ RUN \
6869
mkdir nginx-proxy-manager && \
6970
curl -# -L ${NGINX_PROXY_MANAGER_URL} | tar xz --strip 1 -C nginx-proxy-manager && \
7071

72+
# Patch.
73+
curl -# -L https://github.com/jlesage/nginx-proxy-manager/commit/0aa1cb0aa.patch | patch -d nginx-proxy-manager -p1 && \
74+
7175
# Build Nginx Proxy Manager.
7276
echo "Building Nginx Proxy Manager..." && \
7377
cp -r nginx-proxy-manager /app && \
@@ -100,6 +104,7 @@ RUN \
100104
sed-patch 's|listen 80;|listen 8080;|' /opt/nginx-proxy-manager/src/backend/templates/_listen.conf && \
101105

102106
# Change the HTTPs port 443 to the unprivileged port 4443.
107+
sed-patch 's|listen 443 |listen 4443 |' /etc/nginx/conf.d/default.conf && \
103108
sed-patch 's|listen 443 |listen 4443 |' /opt/nginx-proxy-manager/src/backend/templates/_listen.conf && \
104109

105110
# Fix nginx test command line.

0 commit comments

Comments
 (0)