Skip to content

Commit

Permalink
Merge pull request #4 from szaimen/enh/noid/overwrite-countries
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen authored Oct 4, 2023
2 parents a2ce3ae + a891eb4 commit 53b57bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@geofilter {
not maxmind_geolocation {
db_path "/data/GeoLite2-Country.mmdb"
allow_countries $ALLOW_CONTRIES
allow_countries
}
not remote_ip private_ranges
}
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CADDY
fi

if [ "$FILTER_SET" = 1 ] && [ "$FILE_THERE" = 1 ]; then
CADDYFILE="$(sed "s|# import GEOFILTER| import GEOFILTER|" /Caddyfile)"
CADDYFILE="$(sed "s|allow_countries.*|allow_countries $ALLOW_CONTRIES|;s|# import GEOFILTER| import GEOFILTER|" /Caddyfile)"
else
CADDYFILE="$(sed "s| import GEOFILTER|# import GEOFILTER|" /Caddyfile)"
fi
Expand Down

0 comments on commit 53b57bb

Please sign in to comment.