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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
/*
* WebThings Gateway Default Configuration.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const os = require('os');
const path = require('path');
const home = os.homedir();
module.exports = {
// Expose CLI
cli: false,
profileDir: `/etc/webthings-gateway`,
ports: {
https: 4443,
http: 8080,
},
// Whether the gateway is behind port forwarding and should use simplified
// port-free urls
behindForwarding: false,
addonManager: {
listUrls: [
'https://api.mozilla-iot.org:8443/addons',
],
testAddons: false,
},
database: {
removeBeforeOpen: false,
},
ipc: {
protocol: 'ipc',
},
settings: {
defaults: {
domain: {
localAccess: false,
mozillaTunnelService: true,
localControl: {
mdnsServiceType: 'http',
mdnsServiceName: 'Mozilla WebThings Gateway',
mdnsServiceDomain: os.hostname().split('.')[0],
mdnsTxt: {
desc: 'Web of Things Gateway',
protocol: 'http, https, Web Sockets',
power: '6 watts',
},
},
},
},
},
authentication: {
defaultUser: null,
},
ssltunnel: {
enabled: true,
registration_endpoint: 'https://api.mozilla-iot.org:8443',
domain: 'mozilla-iot.org',
pagekite_cmd: '/usr/bin/pagekite',
port: 443,
certemail: 'certificate@mozilla-iot.org',
},
bcryptRounds: 2,
updateUrl: 'https://api.mozilla-iot.org:8443/releases',
wifi: {
ap: {
ipaddr: '192.168.2.1',
ssid_base: 'WebThings Gateway',
},
},
oauthPostToken: false,
oauthTestClients: false,
};
// vim:set ts=2 sw=2 et ft=javascript:
|