-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.json
More file actions
59 lines (59 loc) · 1 KB
/
config_example.json
File metadata and controls
59 lines (59 loc) · 1 KB
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
{
"application": {
"name": "Core"
},
"components": {
"big_cache": false,
"mem_cache": false,
"memory": true,
"redis": false,
"mysql": false,
"http_cache": false,
"log": true,
"stats_view": false
},
"server": {
"address": "127.0.0.1",
"port": "8080",
"write_timeout": "10s",
"read_timeout": "5s",
"mem_cache_ttl": "30s",
"response_config": {
"request_id": true,
"session_token": true
}
},
"middleware": {
"limiter": {
"enabled": true,
"time": "5s",
"max": 10
},
"log_request": {
"enabled": true
},
"basic_headers": {
"enabled": true,
"show_server": true
},
"admin_only": {
"enabled": false
},
"basic_auth": {
"enabled": false
}
},
"log": {
"location": "./core.log",
"options": {
"print_to_term": true,
"overwrite": false
}
},
"persistence": {
"in_memory": {
"capacity": 100000,
"ttl": "30s"
}
}
}