-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcfg.example.json
47 lines (47 loc) · 971 Bytes
/
cfg.example.json
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
{
"logger": {
"dir": "logs/",
"level": "DEBUG",
"keepHours": 24
},
"cas": "http://localhost:8444/cas/",
"db": {
"sqlite":"sqlite.db",
"mysql": "root:password@tcp(127.0.0.1:3306)/oauth?charset=utf8&parseTime=True&loc=Local",
"db_debug": false
},
"redis": {
"dsn": "127.0.0.1:6379",
"max_idle": 5,
"conn_timeout": 5,
"read_timeout": 5,
"write_timeout": 5,
"password": ""
},
"redis_namespace": {
"oauth": "oauth:",
"cache": "cache:",
"lock": "lock:",
"fail": "fail:"
},
"http": {
"listen": "0.0.0.0:8081",
"manage_ip": ["127.0.0.1"],
"x-api-key": "shanghai-edu",
"session_options": {
"path": "/",
"domain": "playground.example.org",
"max_age": 7200,
"secure": false,
"http_only": false
},
"max_multipart_memory": 100
},
"max_failed": 5,
"failed_intervel": 300,
"lock_time": 600,
"access_token_expired": 7200,
"old_access_token_expired": 300,
"refresh_token_expired_day": 365,
"code_expired": 300
}