forked from movableink/doorman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.example.js
50 lines (43 loc) · 1.45 KB
/
conf.example.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
module.exports = {
// port to listen on
port: 443,
ssl: {
privateKey: '/your/privateKey/path',
certificate: '/your/certificate/path'
},
proxyTo: {
host: 'localhost',
port: 8080
},
sessionSecret: 'AeV8Thaieel0Oor6shainu6OUfoh3ohwZaemohC0Ahn3guowieth2eiCkohhohG4', // change me
sessionCookieMaxAge: 4 * 24 * 60 * 60 * 1000, // milliseconds until session cookie expires (or "false" to not expire)
// Paths that bypass doorman and do not need any authentication. Matches on the
// beginning of paths; for example '/about' matches '/about/me'. Regexes are also supported.
// publicPaths: [
// '/about/',
// '/robots.txt',
// /(.*?).png$/
// ],
modules: {
// Register a new oauth app on Github at
// https://github.com/account/applications/new
github: {
appId: 'YOUR-GITHUB-APP-ID',
appSecret: 'YOUR-GITHUB-APP-SECRET',
entryPath: '/oauth/github',
callbackPath: '/oauth/github/callback',
requiredOrganization: 'YOUR-ORGANIZATION-NAME' // short organization name
},
// Simple password login, make sure you choose a very secure password.
// password: {
// token: "YOUR-PASSWORD" // any user that knows this can log in
// },
// Register a new oauth app on Google Apps at
// https://code.google.com/apis/console
google: {
appId: 'YOUR-GOOGLE-CLIENT-ID',
appSecret: 'YOUR-GOOGLE-CLIENT-SECRET',
requiredDomain: 'yourdomain.com'
}
}
};