2020-10-03 02:45:45 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (c) 2020, The Monero Project.
|
|
|
|
# Copyright (c) 2020, dsc@xmr.pm
|
|
|
|
|
2020-12-22 18:03:48 +00:00
|
|
|
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'))
|
|
|
|
|
|
|
|
|
2021-04-05 17:49:02 +00:00
|
|
|
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))
|
2020-10-03 02:45:45 +00:00
|
|
|
|
2022-03-14 17:00:16 +00:00
|
|
|
REDIS_HOST = os.environ.get("WOWLET_REDIS_HOST", "localhost")
|
|
|
|
REDIS_PORT = os.environ.get("WOWLET_REDIS_PORT", 6379)
|
2021-04-05 17:49:02 +00:00
|
|
|
REDIS_PASSWORD = os.environ.get("WOWLET_REDIS_PASSWORD")
|
2020-12-22 18:03:48 +00:00
|
|
|
|
2022-03-14 17:00:16 +00:00
|
|
|
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")
|
2021-04-05 17:49:02 +00:00
|
|
|
COIN_MODE = os.environ.get("WOWLET_COIN_MODE", "mainnet").lower()
|
2020-12-22 18:03:48 +00:00
|
|
|
|
2021-04-05 17:49:02 +00:00
|
|
|
TOR_SOCKS_PROXY = os.environ.get("WOWLET_TOR_SOCKS_PROXY", "socks5://127.0.0.1:9050")
|
2020-12-22 18:03:48 +00:00
|
|
|
|
2023-08-29 20:36:21 +00:00
|
|
|
RPC_WOWNERO_HOST = "127.0.0.1"
|
|
|
|
RPC_WOWNERO_PORT = 34568
|
|
|
|
|
2020-12-22 18:03:48 +00:00
|
|
|
# while fetching USD price from coingecko, also include these extra coins:
|
|
|
|
CRYPTO_RATES_COINS_EXTRA = {
|
2022-03-14 17:00:16 +00:00
|
|
|
"wownero": "wow"
|
2020-12-22 18:03:48 +00:00
|
|
|
}
|