import os

BUGOUT_BROOD_URL = os.environ.get("BUGOUT_BROOD_URL", "https://auth.bugout.dev")
BUGOUT_SPIRE_URL = os.environ.get("BUGOUT_SPIRE_URL", "https://spire.bugout.dev")

REQUESTS_TIMEOUT = 5
REQUESTS_TIMEOUT_RAW = os.environ.get("BUGOUT_TIMEOUT_SECONDS")
try:
    if REQUESTS_TIMEOUT_RAW is not None:
        REQUESTS_TIMEOUT = int(REQUESTS_TIMEOUT_RAW)
except:
    raise Exception(
        f"Could not parse BUGOUT_REQUESTS_TIMEOUT environment variable as int: {REQUESTS_TIMEOUT_RAW}"
    )

# Web3 signature
BUGOUT_APPLICATION_ID_HEADER = os.environ.get(
    "BUGOUT_APPLICATION_ID_HEADER", "x-bugout-application-id"
)
