-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.dist.js
86 lines (70 loc) · 2.19 KB
/
config.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
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
"use strict";
module.exports = {
identity_providers: {
// Details : http://passportjs.org/guide/facebook/
facebook: {
enabled: false,
client_id: '',
client_secret: '',
callback_url: ''
},
github: {
enabled: true,
client_id: '',
client_secret: '',
callback_url: ''
},
ebu: {
enabled: false
},
local: {
enabled: false
}
},
// When accessing the home page, if defined, users are automatically
// redirected to the specified identity_providers (ie: 'github')
auto_idp_redirect: '',
db: {
host: '',
port: 3306,
user: '',
password: '',
// The database type, 'mysql', 'sqlite', etc.
type: '',
database: '',
// Database filename for SQLite.
filename: '',
// If true, SQL statements are logged to the console.
debug: true
},
// Session cookie is signed with this secret to prevent tampering
session_secret: 'LKASDMjnr234n90lasndfsadf',
// Cross-origin resource sharing
cors: {
enabled: true,
allowed_domains: [
"http://cpa-client.ebu.io"
]
},
// URL path prefix, e.g., '/myapp'
urlPrefix: '',
// The end-user verification URI on the authorization server. The URI should
// be short and easy to remember as end-users will be asked to manually type
// it into their user-agent.
verification_uri: 'http://vagrant.ebu.io:3000/',
domains: [],
// This option controls how the authorization server responds to requests to
// associate an existing client with a new domain:
// - false: The user must authenticate and confirm access to the new domain
// - true: The user is automatically granted access without confirmation
auto_provision_tokens: false,
// The length of time that user (pairing) codes are valid, in seconds.
pairing_code_lifetime: 60 * 60, // 1 hour
// The length of time that a access tokens are valid, in seconds.
access_token_lifetime: 24 * 60 * 60, // 1 day
// The length of time that an authorization code is valid, in seconds.
authorization_code_lifetime: 10 * 60, // 10 minutes
// The maximum rate at which clients should poll to obtain an access token,
// in seconds.
max_poll_interval: 5
};