mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-19 05:24:37 +01:00
Adds API HOST and PORT as configurable parameters.
Uses API_BIND/API_PORT for the server and API_CONNECT/API_PORT for the user, for consistency.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import os
|
||||
|
||||
HOST = "localhost"
|
||||
PORT = 9814
|
||||
DATA_DIR = os.path.expanduser("~/.teos/")
|
||||
CONF_FILE_NAME = "teos.conf"
|
||||
LOG_PREFIX = "teos"
|
||||
|
||||
# Default conf fields
|
||||
DEFAULT_CONF = {
|
||||
"API_BIND": {"value": "localhost", "type": str},
|
||||
"API_PORT": {"value": 9814, "type": int},
|
||||
"BTC_RPC_USER": {"value": "user", "type": str},
|
||||
"BTC_RPC_PASSWORD": {"value": "passwd", "type": str},
|
||||
"BTC_RPC_CONNECT": {"value": "127.0.0.1", "type": str},
|
||||
|
||||
Reference in New Issue
Block a user