Add support for GeoIP data (#3230)

This commit is contained in:
Raphael Michel
2023-04-17 09:50:46 +02:00
committed by GitHub
parent c890f4cdc0
commit 11e3bd4d39
10 changed files with 55 additions and 8 deletions

View File

@@ -330,6 +330,12 @@ ENTROPY = {
'giftcard_secret': config.getint('entropy', 'giftcard_secret', fallback=12),
}
HAS_GEOIP = False
if config.has_option('geoip', 'path'):
HAS_GEOIP = True
GEOIP_PATH = config.get('geoip', 'path')
GEOIP_COUNTRY = config.get('geoip', 'filename_country', fallback='GeoLite2-Country.mmdb')
# Internal settings
PRETIX_EMAIL_NONE_VALUE = 'none@well-known.pretix.eu'