-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json.example
87 lines (87 loc) · 2.15 KB
/
config.json.example
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
87
{
"eventConfiguration": "event.yml",
"database": {
"type": "postgresql",
"hostname": "localhost",
"port": 5432,
"database": "rosettactf",
"username": "rosettactf",
"password": "hunter2",
"useSsl": true,
"forceTrust": true
},
"cache": {
"type": "redis",
"hostname": "localhost",
"port": 6379,
"index": 0,
"password": "hunter2",
"useSsl": true
},
"http": {
"forwardHeaders": {
"enable": true,
"limit": 1,
"networks": [
"10.0.0.0/8"
]
},
"listen": [
{
"address": "127.0.0.1",
"port": 5000,
"useSsl": true,
"certificateFile": "/var/rosettactf/rosettactf.pfx",
"certificatePasswordFile": "/var/rosettactf/rosettactf.pfx.pwd"
}
]
},
"authentication": {
"tokenKey": "hunter2",
"tokenIssuer": "https://myrosettactfinstance.xyz/",
"localLogin": true,
"oauth": {
"enable": true,
"tokenKey": "hunter2",
"providers": [
{
"type": "discord",
"clientId": "123456789123456789",
"clientSecret": "Client secret from Discord Developers page",
"authorizedGuilds": [
123456789123456789
]
},
{
"type": "custom",
"id": "ctftime",
"name": "CTFtime",
"colour": "#FF0000",
"clientId": "Your event ID",
"clientSecret": "Your client secret from event management interface",
"authorizeUrl": "https://oauth.ctftime.org/authorize",
"tokenUrl": "https://oauth.ctftime.org/token",
"refreshUrl": "Optional, if the provider supports refreshing.",
"revokeUrl": "Optional, if the provider supports revocations.",
"userUrl": "https://oauth.ctftime.org/user",
"scopes": [
"profile:read"
],
"hostnames": [
"oauth.ctftime.org",
"ctftime.org"
],
"mappings": {
"userId": "id",
"username": "username"
}
}
]
}
},
"keyDerivation": {
"parallelism": -1,
"memory": -1,
"iterations": -1
}
}