-
Notifications
You must be signed in to change notification settings - Fork 52
/
conf.example.js
78 lines (64 loc) · 2.62 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
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
module.exports = {
// port to listen on
port: 8085,
// Secure port for HTTPS connections. SSL certificate options MUST be set when enabled.
// securePort: 443,
// Force Transport Layer Security (TLS). Secure port and SSL certificates must be set.
// forceTLS: true,
// URL for OAuth callbacks, default autodetect
// hostname: 'http://myhostname.example.com',
proxyTo: {
host: 'localhost',
port: 8080
},
// Session cookie options, see: https://github.com/expressjs/cookie-session
sessionCookie: {
name: '__doorman',
maxage: 4 * 24 * 60 * 60 * 1000, // milliseconds until expiration (or "false" to not expire)
secret: 'AeV8Thaieel0Oor6shainu6OUfoh3ohwZaemohC0Ahn3guowieth2eiCkohhohG4' // change me
},
// SSL certificates are required when securePort is set
// ssl: {
// keyFile: '/path/to/keyfile.key',
// certFile: '/path/to/certfile.crt'
// // caFile: '/path/to/cafile.crt' // OPTIONAL: Intermediate CA certificate
// }
// 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',
// List of github email addresses that can authenticate
// requiredEmail: ['[email protected]', '[email protected]'],
// Only users with this organization name can authenticate. If an array is
// listed, user may authenticate as a member of ANY of the domains.
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',
// If uncommented, user must authenticate with an account associated with one of
// the emails in the list.
// requiredEmail: ['[email protected]', '[email protected]'],
// User must be a member of this domain to successfully authenticate. If an array
// is listed, user may authenticate as a member of ANY of the domains.
requiredDomain: 'yourdomain.com'
}
}
};