forked from watson-developer-cloud/assistant-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
33 lines (28 loc) · 729 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
// Add WCS credentials by mapping a "name" for your credentials to the credential object
// key: "name" your credentials
// value: ""
var wcsCredentials = {
// '<CredentialName1>': {
// 'url': '',
// 'username': '',
// 'password': ''
// },
// '<CredentialName2>': {
// 'url': '',
// 'username': '',
// 'password': ''
// },
};
if (Object.keys(wcsCredentials).length == 0){
throw 'Set WCS credentials in config.js';
}
// Optionally set basic auth configuration
// https://www.npmjs.com/package/express-basic-auth
var basicAuthConfig = {
// users: { 'username': 'password' },
// challenge: true
};
module.exports = {
wcsCredentials: wcsCredentials,
basicAuthConfig: basicAuthConfig
};