File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ RUN \
146
146
make install && \
147
147
find /var/lib/nginx/ -type f -name '*.so*' -exec strip {} ';' && \
148
148
strip /usr/sbin/nginx && \
149
+ ln -s /config/geoip2 /var/lib/GeoIP2 && \
149
150
cd .. && \
150
151
# Cleanup.
151
152
del-pkg build-dependencies && \
@@ -187,6 +188,8 @@ RUN \
187
188
bash \
188
189
# For openresty
189
190
pcre \
191
+ # For GeoIP2 database update
192
+ curl \
190
193
&& \
191
194
# Adjust the logrotate config file.
192
195
sed-patch 's|^/var/log/messages|#/var/log/messages|' /etc/logrotate.conf
@@ -355,7 +358,9 @@ COPY rootfs/ /
355
358
# Set environment variables.
356
359
ENV APP_NAME="Nginx Proxy Manager" \
357
360
KEEP_APP_RUNNING=1 \
358
- DISABLE_IPV6=0
361
+ DISABLE_IPV6=0 \
362
+ MAXMINDDB_EDITION=GeoLite2-Country \
363
+ MAXMINDDB_LICENSE_KEY=
359
364
360
365
# Define mountable directories.
361
366
VOLUME ["/config" ]
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ mkdir -p \
24
24
/config/nginx/temp \
25
25
/config/log/letsencrypt \
26
26
/config/letsencrypt-workdir \
27
+ /config/geoip2 \
27
28
28
29
# Make sure to remove old logs directory symlink.
29
30
[ ! -L /config/logs ] || rm /config/logs
You can’t perform that action at this time.
0 commit comments