<filename>geoip_api/config.py<gh_stars>1-10
import os

REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379/")
MMDB_PATH = os.getenv("MMDB_PATH", "/usr/share/GeoIP")
RATE_LIMIT = os.getenv("RATE_LIMIT", "10/minute")
DEFAULT_LOCALE = os.getenv("DEFAULT_LOCALE", "en")
INCLUDE_ASN = os.getenv("INCLUDE_ASN", "True").lower() in ("yes", "true", "t", "1")

<filename>geoip_api/config.py<gh_stars>1-10
import os

REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379/")
MMDB_PATH = os.getenv("MMDB_PATH", "/usr/share/GeoIP")
RATE_LIMIT = os.getenv("RATE_LIMIT", "10/minute")
DEFAULT_LOCALE = os.getenv("DEFAULT_LOCALE", "en")
INCLUDE_ASN = os.getenv("INCLUDE_ASN", "True").lower() in ("yes", "true", "t", "1")
