-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.example.py
32 lines (30 loc) · 1.12 KB
/
config.example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or \
'de4055e624fe25f7e195f627a839c2a48f6d1ce698e5fce1c0ba97c5e4a80413-replace-with-your-key'
if not SECRET_KEY:
from secrets import token_hex
SECRET_KEY = token_hex(64) # Don't use this in production environment
# raise ValueError("No SECRET_KEY set for Flask application")
BOOTSTRAP_SERVE_LOCAL = True
FLASK_DEBUG = False
DEBUG = False
REQUEST_LIMIT_DEFAULT = 10
REQUEST_LIMIT_MAX = 25
NETWORKS_ENABLED = {
'btc': 'bitcoin',
'ltc': 'litecoin',
# 'doge': 'dogecoin',
'tbtc': 'testnet',
'tbtc4': 'testnet4',
# 'xlt': 'litecoin_testnet',
# 'tdoge': 'doge_testnet',
# 'reg': 'regtest',
}
NETWORK_DEFAULT = 'btc' # Has no effect yet, only works for 'btc' at the moment
API_BASE_URL = '' # Enter full url to redirect API to another server
ENABLE_WEBSITE = True
ENABLE_API = True
ENABLE_API_KEY_AUTHENTICATION = False
ENABLE_API_CREDITS_COUNTER = False
API_AUTH_DATABASE_FILE = 'blocksmurfer-api-keys.db'