-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
38 lines (27 loc) · 910 Bytes
/
config.js
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
module.exports = {
/**
* SOURCE_MQTT_HOST
* The ip or host name of source broker
*/
SOURCE_MQTT_HOST: process.env.SOURCE_MQTT_HOST || 'mqtt://broker',
/**
* SOURCE_MQTT_CONF
* The configuration of source broker
*/
SOURCE_MQTT_CONF: process.env.SOURCE_MQTT_CONF || '{"clean": false, "port": 1885, "clientId": "mqtt-repeater-source-client"}',
/**
* TARGET_MQTT_HOST
* The ip or host name of source broker
*/
TARGET_MQTT_HOST: process.env.TARGET_MQTT_HOST || 'mqtt://broker',
/**
* TARGET_MQTT_CONF
* The configuration of source broker
*/
TARGET_MQTT_CONF: process.env.TARGET_MQTT_CONF || '{"clean": false, "port": 1883, "clientId": "mqtt-repeater-target-client"}',
/**
* SUBSCRIPTIONS
* subscribe list to exchange
*/
SUBSCRIPTIONS: process.env.SUBSCRIPTIONS || '["#"]'
};