This repository was archived by the owner on Jan 6, 2021. It is now read-only.
File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
257
257
258
258
## Versions
259
259
260
+ * ** 31.07.19:** - Create GeoIP2 databse (libmaxminddb) during container start if it doesn't exist.
260
261
* ** 30.07.19:** - Support main domain via duckdns validation.
261
262
* ** 29.07.19:** - Enable http to https redirect by default (effective only for new installs).
262
263
* ** 01.07.19:** - Patch geoip2 module until upstream is fixed.
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ app_setup_nginx_reverse_proxy_block: ""
126
126
127
127
# changelog
128
128
changelogs :
129
+ - { date: "31.07.19:", desc: "Create GeoIP2 databse (libmaxminddb) during container start if it doesn't exist." }
129
130
- { date: "30.07.19:", desc: "Support main domain via duckdns validation." }
130
131
- { date: "29.07.19:", desc: "Enable http to https redirect by default (effective only for new installs)." }
131
132
- { date: "01.07.19:", desc: "Patch geoip2 module until upstream is fixed." }
Original file line number Diff line number Diff line change @@ -247,6 +247,11 @@ else
247
247
echo "Certificate exists; parameters unchanged; starting nginx"
248
248
fi
249
249
250
+ # check GeoIP2 database
251
+ [[ ! -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]] && \
252
+ echo "creating GeoIP2 database" && \
253
+ /etc/periodic/weekly/libmaxminddb
254
+
250
255
# logfiles needed by fail2ban
251
256
[[ ! -f /config/log/nginx/error.log ]] && \
252
257
touch /config/log/nginx/error.log
You can’t perform that action at this time.
0 commit comments