mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Add support for GeoIP data (#3230)
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user