-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
52 lines (50 loc) · 1.87 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Copyright (c) 2020-2024 Kazuhito Suda
*
* This file is part of custom-iotagent-sakuraio
*
* https://github.com/lets-fiware/custom-iotagent-sakuraio
*
* custom-iotagent-sakuraio is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* custom-iotagent-sakuraio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with custom-iotagent-sakuraio.
* If not, see http://www.gnu.org/licenses/.
*
*/
const config = {
logLevel: (process.env.IOTA_LOG_LEVEL || 'DEBUG'),
contextBroker: {
host: (process.env.IOTA_CB_HOST || 'orion'),
port: (process.env.IOTA_CB_PORT || '1026'),
ngsiVersion: 'v2'
},
server: {
port: (process.env.IOTA_NORTH_PORT || '4041')
},
deviceRegistry: {
type: (process.env.IOTA_REGISTRY_TYPE || 'mongodb')
},
mongodb: {
host: (process.env.IOTA_MONGO_HOST || 'mongo'),
port: (process.env.IOTA_MONGO_PORT || '27017'),
db: (process.env.IOTA_MONGO_DB ||'iotasakuraio')
},
types: {
},
service: (process.env.IOTA_SERVICE || 'openiot'),
subservice: (process.env.IOTA_SUBSERVICE || '/sakuraio'),
providerUrl: (process.env.IOTA_PROVIDER_URL || 'http://iot-agent:4041'),
deviceRegistrationDuration: (process.env.IOTA_DEVICE_REGISTRY_DURATION ||'P1M'),
defaultType: (process.env.IOTA_DEFAULT_TYPE || 'Thing'),
websocket: (process.env.IOTA_WEBSOCKET || 'ws://localhost:8080/')
};
module.exports = config;