Skip to content

Commit 304e157

Browse files
committed
Fixed usage of incorrect ports.
1 parent 0f55e43 commit 304e157

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,17 @@ RUN \
124124

125125
# Change the HTTP port 80 to the unprivileged port 8080.
126126
sed-patch 's|80;|8080;|' /etc/nginx/conf.d/default.conf && \
127+
sed-patch 's|"80";|"8080";|' /etc/nginx/conf.d/default.conf && \
127128
sed-patch 's|listen 80;|listen 8080;|' /opt/nginx-proxy-manager/templates/letsencrypt-request.conf && \
128129
sed-patch 's|listen 80;|listen 8080;|' /opt/nginx-proxy-manager/templates/_listen.conf && \
130+
sed-patch 's|:80;|:8080;|' /opt/nginx-proxy-manager/templates/_listen.conf && \
129131
sed-patch 's|listen 80 |listen 8080 |' /opt/nginx-proxy-manager/templates/default.conf && \
130132

131133
# Change the HTTPs port 443 to the unprivileged port 4443.
132134
sed-patch 's|443 |4443 |' /etc/nginx/conf.d/default.conf && \
135+
sed-patch 's|"443";|"4443";|' /etc/nginx/conf.d/default.conf && \
133136
sed-patch 's|listen 443 |listen 4443 |' /opt/nginx-proxy-manager/templates/_listen.conf && \
137+
sed-patch 's|:443;|:4443;|' /opt/nginx-proxy-manager/templates/_listen.conf && \
134138

135139
# Fix nginx test command line.
136140
sed-patch 's|-g "error_log off;"||' /opt/nginx-proxy-manager/internal/nginx.js && \

0 commit comments

Comments
 (0)