-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.js
More file actions
36 lines (35 loc) · 896 Bytes
/
config.example.js
File metadata and controls
36 lines (35 loc) · 896 Bytes
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
const configs = {
common: {
oidc: {
clientId: "<client id>",
clientSecret: "<client secret",
issuer: "https://gitlab.hkustracing.com",
userInfoUrl: "https://gitlab.hkustracing.com/oauth/userinfo",
authorizationURL: "https://gitlab.hkustracing.com/oauth/authorize",
tokenURL: "https://gitlab.hkustracing.com/oauth/token",
emailClaim: "_json.email",
usernameClaim: "_json.nickname"
},
passportSession: {
name: "passport.sid",
secret: "my-screte",
resave: false,
saveUninitialized: false
},
fileLimitSize: 100, //in kb
queueCapacity: 10,
pythonPath: "python3"
},
dev: {
MODE: "dev",
HOST: "http://localhost:8085"
},
production: {
MODE: "production",
HOST: "https://example.com"
}
};
module.exports = (key = "production") => ({
...configs.common,
...configs[key]
});