-
Notifications
You must be signed in to change notification settings - Fork 45
/
config.py
62 lines (50 loc) · 2.1 KB
/
config.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import os
WEBSOCKET_URL = os.environ.get('WEBSOCKET_URL', "wss://api.bitshares-kibana.info/ws")
# Default connection to Elastic Search.
ELASTICSEARCH = {
#'hosts': os.environ.get('ELASTICSEARCH_URL', 'https://elasticsearch.bitshares-kibana.info/').split(','),
'hosts': os.environ.get('ELASTICSEARCH_URL', 'https://BitShares:[email protected]:443').split(','),
'user': os.environ.get('ELASTICSEARCH_USER', 'BitShares'),
'password': os.environ.get('ELASTICSEARCH_PASS', 'Infrastructure')
}
# Optional ElasticSearch cluster to access other data.
# Currently expect:
# - 'operations': for bitshares-* indexes where operations are stored
# - 'objects': for objects-* indexes where Chain data is stored.
#
# Sample:
#
# ELASTICSEARCH_ADDITIONAL {
# 'operations': None, # Use default cluster.
# 'objects': {
# 'hosts': ['https://es.mycompany.com/'],
# 'user': 'myself',
# 'password': 'secret'
# }
# }
ELASTICSEARCH_ADDITIONAL = {
# Overwrite cluster to use to retrieve bitshares-* index.
'operations': None,
# Overwrite cluster to use to retrieve bitshares-* index.
'objects': {
#'hosts': ['https://elasticsearch.bitshares-kibana.info/'] # oxarbitrage (no credentials)
'hosts': ['https://BitShares:[email protected]:443'] # infra
}
}
# Cache: see https://flask-caching.readthedocs.io/en/latest/#configuring-flask-caching
CACHE = {
'CACHE_TYPE': os.environ.get('CACHE_TYPE', 'simple'), # use 'uwsgi' when running under uWSGI server.
'CACHE_DEFAULT_TIMEOUT': int(os.environ.get('CACHE_DEFAULT_TIMEOUT', 600)) # 10 min
}
# Configure profiler: see https://github.com/muatik/flask-profiler
PROFILER = {
'enabled': os.environ.get('PROFILER_ENABLED', False),
'username': os.environ.get('PROFILER_USERNAME', None),
'password': os.environ.get('PROFILER_PASSWORD', None),
}
CORE_ASSET_SYMBOL = 'BTS'
CORE_ASSET_ID = '1.3.0'
TESTNET = 0 # 0 = not in the testnet, 1 = testnet
CORE_ASSET_SYMBOL_TESTNET = 'TEST'
# Choose which APIs to expose, default to all.
#EXPOSED_APIS = ['explorer', 'es_wrapper', 'udf']