-
Notifications
You must be signed in to change notification settings - Fork 3
/
webthings-gateway.conf
109 lines (84 loc) · 2.38 KB
/
webthings-gateway.conf
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
* 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 = {
// Base profile directory
profileDir: `/etc/webthings-gateway`,
ports: {
// HTTPS port
https: 4443,
// HTTP port
http: 8080,
// IPC port -- changing this will likely break all add-ons
ipc: 9500,
},
// Whether the gateway is behind port forwarding and should use simplified
// port-free urls
behindForwarding: false,
addonManager: {
// URLs of add-on lists to parse, in order
listUrls: [
'https://api.webthings.io:8443/addons',
],
// Whether or not to allow installation of test-only add-ons
testAddons: false,
},
database: {
// Remove the database before opening. Only useful for testing.
removeBeforeOpen: false,
},
settings: {
defaults: {
mdns: {
// Whether or not to enable mDNS advertisements
enabled: false,
// Domain to advertise via mDNS
domain: os.hostname().split('.')[0],
},
},
},
ssltunnel: {
// Whether or not to enable the PageKite tunnel (if set up)
enabled: true,
// Endpoint of the PageKite server
registration_endpoint: 'https://api.webthings.io:8443',
// Base domain
domain: 'webthings.io',
// Command to run PageKite
pagekite_cmd: '/usr/bin/pagekite',
// Port the PageKite server is running on
port: 443,
// Email address to use during certificate generation
certemail: '[email protected]',
},
updates: {
// URL of update server
url: 'https://api.webthings.io:8443/releases',
// Whether or not to allow prerelease updates
allowPrerelease: false,
},
wifi: {
ap: {
// IP address to run captive portal on
ipaddr: '192.168.2.1',
// Base SSID to use for captive portal (suffix will include MAC address
// components)
ssid_base: 'WebThings Gateway',
},
},
oauth: {
// Whether or not to post the OAuth token back in the response
postToken: false,
// Whether or not to allow test clients
testClients: false,
},
};
// vim:set ts=2 sw=2 et ft=javascript: