Skip to content

Commit f5ac0af

Browse files
committed
Upgraded Nginx Proxy Manager to version 2.0.8.
1 parent 12acb98 commit f5ac0af

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
FROM jlesage/baseimage:alpine-3.8-v2.4.1
99

1010
# Define software versions.
11-
ARG NGINX_PROXY_MANAGER_VERSION=2.0.7
11+
ARG NGINX_PROXY_MANAGER_VERSION=2.0.8
1212

1313
# Define software download URLs.
1414
ARG NGINX_PROXY_MANAGER_URL=https://github.com/jc21/nginx-proxy-manager/archive/${NGINX_PROXY_MANAGER_VERSION}.tar.gz
@@ -117,6 +117,10 @@ RUN \
117117
# Redirect `/data' to '/config'.
118118
ln -s /config /data && \
119119

120+
# Make sure the config file for IP ranges is stored in persistent volume.
121+
mv /etc/nginx/conf.d/include/ip_ranges.conf /defaults/ && \
122+
ln -sf /config/nginx/ip_ranges.conf /etc/nginx/conf.d/include/ip_ranges.conf && \
123+
120124
# Make sure nginx cache is stored on the persistent volume.
121125
ln -s /config/nginx/cache /var/lib/nginx/cache && \
122126

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ touch /config/log/nginx/manager.log
3333
ln -sf log/nginx /config/logs
3434

3535
# Install default config.
36+
[ -f /config/nginx/ip_ranges.conf ] || cp /defaults/ip_ranges.conf /config/nginx/
3637
[ -f /config/production.json ] || cp /defaults/production.json /config/
3738
[ -f $XDG_CONFIG_HOME/letsencrypt/cli.ini ] || cp /defaults/cli.ini $XDG_CONFIG_HOME/letsencrypt/
3839

0 commit comments

Comments
 (0)