forked from France-ioi/codecast
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json.template
45 lines (45 loc) · 1.16 KB
/
config.json.template
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
{
"host": "127.0.0.1",
"port": 8001,
"baseUrl": "https://codecast.france-ioi.org/next",
"mountPath": "/next",
"database": {
"host": "@@MYSQL_HOST@@",
"user": "@@MYSQL_USER@2",
"password": "@@MYSQL_PASSWORD@@",
"database": "@@MYSQL_DATABASE@@"
},
"session": {
"secret": "@@RANDOM_SESSION_SECRET@@",
"resave": false,
"saveUninitialized": true,
"cookie": {"secure": true, "maxAge": 604800}
},
"auth": {
"@@AUTH_PROVIDER_NAME@@": {
"oauth2": {
"clientId": "@@OAUTH2_CLIENT_ID@@",
"clientSecret": "@@OAUTH2_CLIENT_SECRET@@",
"accessTokenUri": "@@OAUTH2_ACCESS_TOKEN_URI@@",
"authorizationUri": "@@OAUTH2_AUTHORIZATION_URI@@",
"redirectUri": "@@OAUTH2_CALLBACK_URI@@",
"scopes": ["codecast"]
},
"identityProviderUri": "@@IDENTITY_PROVIDER_URI@@",
"logoutUri": "@@LOGOUT_URI@@"
}
},
"configs": {
"base": {
"s3AccessKeyId": "@@ACCESS_KEY_ID@@",
"s3SecretAccessKey": "@@SECRET_ACCESS_KEY@@",
"s3Region": "@@REGION@@",
"s3Bucket": "@@BUCKET@@"
}
},
"tokens": {
"default": [
"base", {"uploadPath": "uploads"}
]
}
}