# SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2020, The Monero Project. # Copyright (c) 2020, dsc@xmr.pm import os cwd = os.path.dirname(os.path.realpath(__file__)) def bool_env(val): return val is True or (isinstance(val, str) and (val.lower() == 'true' or val == '1')) DEBUG = bool_env(os.environ.get("WOWLET_DEBUG", False)) HOST = os.environ.get("WOWLET_HOST", "127.0.0.1") PORT = int(os.environ.get("WOWLET_PORT", 1337)) REDIS_HOST = os.environ.get("WOWLET_REDIS_HOST", "localhost") REDIS_PORT = os.environ.get("WOWLET_REDIS_PORT", 6379) REDIS_PASSWORD = os.environ.get("WOWLET_REDIS_PASSWORD") COIN_NAME = os.environ.get("WOWLET_COIN_NAME", "wownero").lower() # as per coingecko COIN_SYMBOL = os.environ.get("WOWLET_COIN_SYMBOL", "wow").lower() # as per coingecko COIN_GENESIS_DATE = os.environ.get("WOWLET_COIN_GENESIS_DATE", "20180401") COIN_MODE = os.environ.get("WOWLET_COIN_MODE", "mainnet").lower() TOR_SOCKS_PROXY = os.environ.get("WOWLET_TOR_SOCKS_PROXY", "socks5://127.0.0.1:9050") # while fetching USD price from coingecko, also include these extra coins: CRYPTO_RATES_COINS_EXTRA = { "wownero": "wow" }