Skip to content

Commit 119df9f

Browse files
authored
Merge pull request #176 from quietsy/master
Move maxmind to a new mod
2 parents 522fed5 + 4929672 commit 119df9f

File tree

6 files changed

+1
-153
lines changed

6 files changed

+1
-153
lines changed

readme-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ opt_param_env_vars:
5858
- { env_var: "ONLY_SUBDOMAINS", env_value: "false", desc: "If you wish to get certs only for certain subdomains, but not the main domain (main domain may be hosted on another machine and cannot be validated), set this to `true`" }
5959
- { env_var: "EXTRA_DOMAINS", env_value: "", desc: "Additional fully qualified domain names (comma separated, no spaces) ie. `extradomain.com,subdomain.anotherdomain.org,*.anotherdomain.org`" }
6060
- { env_var: "STAGING", env_value: "false", desc: "Set to `true` to retrieve certs in staging mode. Rate limits will be much higher, but the resulting cert will not pass the browser's security test. Only to be used for testing purposes." }
61-
- { env_var: "MAXMINDDB_LICENSE_KEY", env_value: "", desc: "Add your MaxmindDB license key to automatically download the GeoLite2-City.mmdb database. Download location is /config/geoip2db. The database is updated weekly."}
6261
opt_param_usage_include_vols: false
6362
opt_param_volumes:
6463
- { vol_path: "/config", vol_host_path: "/path/to/appdata/config", desc: "Configuration files." }
@@ -155,6 +154,7 @@ app_setup_nginx_reverse_proxy_block: ""
155154

156155
# changelog
157156
changelogs:
157+
- { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" }
158158
- { date: "22.11.21:", desc: "Added support for Infomaniak DNS for certificate generation." }
159159
- { date: "20.11.21:", desc: "Added support for dnspod validation." }
160160
- { date: "15.11.21:", desc: "Added support for deSEC DNS for wildcard certificate generation." }

root/defaults/default

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ server {
3232
# enable for Authelia
3333
#include /config/nginx/authelia-server.conf;
3434

35-
# enable for geo blocking
36-
# See /config/nginx/geoip2.conf for more information.
37-
#if ($allowed_country = no) {
38-
#return 444;
39-
#}
40-
4135
client_max_body_size 0;
4236

4337
location / {

root/defaults/geoip2.conf

Lines changed: 0 additions & 123 deletions
This file was deleted.

root/defaults/nginx.conf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,6 @@ http {
115115
##
116116
include /config/nginx/site-confs/*;
117117
#Removed lua. Do not remove this comment
118-
119-
##
120-
# Geoip2 config
121-
##
122-
# Uncomment to add the Geoip2 configs needed to geo block countries/cities.
123-
##
124-
125-
#include /config/nginx/geoip2.conf;
126118
}
127119

128120
#mail {

root/etc/cont-init.d/50-config

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
7676
cp /defaults/authelia-server.conf /config/nginx/authelia-server.conf
7777
[[ ! -f /config/nginx/authelia-location.conf ]] && \
7878
cp /defaults/authelia-location.conf /config/nginx/authelia-location.conf
79-
[[ ! -f /config/nginx/geoip2.conf ]] && \
80-
cp /defaults/geoip2.conf /config/nginx/geoip2.conf
8179
[[ ! -f /config/www/502.html ]] &&
8280
cp /defaults/502.html /config/www/502.html
8381

@@ -362,18 +360,6 @@ fi
362360
rm -rf /var/lib/libmaxminddb
363361
[[ ! -d /var/lib/libmaxminddb ]] && \
364362
ln -s /config/geoip2db /var/lib/libmaxminddb
365-
# check GeoIP2 database
366-
if [ -n "$MAXMINDDB_LICENSE_KEY" ]; then
367-
sed -i "s|.*MAXMINDDB_LICENSE_KEY.*|MAXMINDDB_LICENSE_KEY=\"${MAXMINDDB_LICENSE_KEY}\"|g" /etc/libmaxminddb.cron.conf
368-
if [ ! -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]; then
369-
echo "Downloading GeoIP2 City database."
370-
/etc/periodic/weekly/libmaxminddb
371-
fi
372-
elif [ -f /var/lib/libmaxminddb/GeoLite2-City.mmdb ]; then
373-
echo -e "Currently using the user provided GeoLite2-City.mmdb.\nIf you want to enable weekly auto-updates of the database, retrieve a free license key from MaxMind,\nand add a new env variable \"MAXMINDDB_LICENSE_KEY\", set to your license key."
374-
else
375-
echo -e "Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,\nand add a new env variable \"MAXMINDDB_LICENSE_KEY\", set to your license key."
376-
fi
377363

378364
# logfiles needed by fail2ban
379365
[[ ! -f /config/log/nginx/error.log ]] && \

root/etc/cont-init.d/70-templates

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
nginx_confs=( \
44
authelia-location.conf \
55
authelia-server.conf \
6-
geoip2.conf \
76
ldap.conf \
87
nginx.conf \
98
proxy.conf \

0 commit comments

Comments
 (0)