diff --git a/app/config/envs/local.json b/app/config/envs/local.json index f6f6a2f..39e86ad 100644 --- a/app/config/envs/local.json +++ b/app/config/envs/local.json @@ -54,10 +54,10 @@ "p2p": { "ip": "0.0.0.0", "port": "9906", - "alert_system_protocol_id": "/bitcoin-stn/alert-system/0.0.1", + "alert_system_protocol_id": "/bitcoin/alert-system/0.0.1", "bootstrap_peer": "", "private_key_path": "", - "topic_name": "alert_system_stn" + "topic_name": "alert_system" }, "rpc_connections": [ { diff --git a/app/config/envs/stn.json b/app/config/envs/stn.json new file mode 100644 index 0000000..f6f6a2f --- /dev/null +++ b/app/config/envs/stn.json @@ -0,0 +1,69 @@ +{ + "alert_webhook_url": "", + "request_logging": true, + "web_server": { + "idle_timeout": "60s", + "port": "3000", + "read_timeout": "15s", + "write_timeout": "15s" + }, + "environment": "local", + "datastore": { + "auto_migrate": true, + "debug": true, + "engine": "sqlite", + "password": "", + "table_prefix": "alert_system", + "sqlite": { + "database_path": "alert_system_datastore.db", + "shared": false + }, + "sql_read": { + "driver": "postgresql", + "host": "localhost", + "max_connection_idle_time": "20s", + "max_connection_time": "20s", + "max_idle_connections": 2, + "max_open_connections": 5, + "name": "alert_system_db", + "password": "postgres", + "port": "5432", + "replica": true, + "skip_initialize_with_version": true, + "time_zone": "UTC", + "tx_timeout": "20s", + "user": "postgres" + }, + "sql_write": { + "driver": "postgresql", + "host": "localhost", + "max_connection_idle_time": "20s", + "max_connection_time": "20s", + "max_idle_connections": 2, + "max_open_connections": 5, + "name": "alert_system_db", + "password": "postgres", + "port": "5432", + "replica": false, + "skip_initialize_with_version": true, + "time_zone": "UTC", + "tx_timeout": "20s", + "user": "postgres" + } + }, + "p2p": { + "ip": "0.0.0.0", + "port": "9906", + "alert_system_protocol_id": "/bitcoin-stn/alert-system/0.0.1", + "bootstrap_peer": "", + "private_key_path": "", + "topic_name": "alert_system_stn" + }, + "rpc_connections": [ + { + "user": "galt", + "password": "galt", + "host": "http://localhost:8333" + } + ] +}