-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlocal.dist.js
43 lines (36 loc) · 1.01 KB
/
local.dist.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
module.exports = {
port: process.env.PORT || 1337,
environment: process.env.NODE_ENV || 'development',
passport: {
local: {
strategy: require('passport-local').Strategy
},
slack: {
name: 'Slack',
protocol: 'oauth2',
strategy: require('passport-slack').Strategy,
options: {
clientID: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
callbackURL: 'YOUR_CALLBACK_URL',
team: 'YOUR_TEAM',
scope: 'identify,client'
}
}
},
models: {
connection: 'mongo',
migrate: 'alter'
},
connections: {
mongo: {
adapter: 'sails-mongo',
url: 'YOUR_MONGODB_URL' // Example: mongodb://127.0.0.1:27017/chatik
}
},
session: {
adapter: 'mongo',
url: 'YOUR_MONGODB_URL', // Example: mongodb://127.0.0.1:27017/chatik
collection: 'sessions'
}
};