Configuration

Get core .env configuration

Method

1configuration.getEnv

Parameters

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
method string The method name. Yes
params object The parameters of the request. Yes

Result

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
result object Object containing .env variables. Yes

Request

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "method": "configuration.getEnv",
5 "params": { }
6}

Response

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "result": {
5 "CORE_LOG_LEVEL": "info",
6 "CORE_LOG_LEVEL_FILE": "info",
7 "CORE_DB_HOST": "localhost",
8 "CORE_DB_PORT": 5432,
9 "CORE_P2P_HOST": "0.0.0.0",
10 "CORE_P2P_PORT": 4000,
11 "CORE_WEBHOOKS_HOST": "0.0.0.0",
12 "CORE_WEBHOOKS_PORT": 4004,
13 "CORE_MONITOR_HOST": "0.0.0.0",
14 "CORE_MONITOR_PORT": 4005,
15 "CORE_API_HOST": "0.0.0.0",
16 "CORE_API_PORT": 4003
17 }
18}

Set core .env configuration

Method

1configuration.setEnv

Parameters

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
method string The method name. Yes
params object Object containing .env variables. Yes

Result

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
result object Result. Yes

Request

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "method": "configuration.updateEnv",
5 "params": {
6 "CORE_LOG_LEVEL": "info",
7 "CORE_LOG_LEVEL_FILE": "info",
8 "CORE_DB_HOST": "localhost",
9 "CORE_DB_PORT": 5432,
10 "CORE_P2P_HOST": "0.0.0.0",
11 "CORE_P2P_PORT": 4000,
12 "CORE_WEBHOOKS_HOST": "0.0.0.0",
13 "CORE_WEBHOOKS_PORT": 4004,
14 "CORE_MONITOR_HOST": "0.0.0.0",
15 "CORE_MONITOR_PORT": 4005,
16 "CORE_API_HOST": "0.0.0.0",
17 "CORE_API_PORT": 4003
18 }
19}

Response

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "result": {}
5}

Get core plugins configuration

Method

1configuration.getPlugins

Parameters

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
method string The method name. Yes
params object The parameters of the request. Yes

Result

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
result object App.json object. Yes

Request

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "method": "configuration.getPlugins",
5 "params": {}
6}

Response

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "result:" "{
5 app.json object
6 }"
7}

Set core plugins configuration

Method

1configuration.setPlugins

Parameters

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
method string The method name. Yes
params object App.json object. Yes

Result

Name Type Description Required
id string / number The identifier of the request. Yes
jsonrpc string The protocol version. Yes
result object Result. Yes

Request

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "method": "configuration.updatePlugins",
5 "params": {
6 app.json object
7 }
8}

Response

1{
2 "id": "unique-request-id",
3 "jsonrpc": "2.0",
4 "result": {}
5}
Last updated 2 years ago
Edit Page
Share: