-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yaml
34 lines (34 loc) · 1.1 KB
/
config.example.yaml
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
listen: "127.0.0.1:1666"
root: "/data/projects/github.com/lupguo/wisdom-httpd"
log:
output: console # console 或者 file
output_file: /tmp/wisdom_app.log
log_level: "debug" # debug, info , error
log_format: '{"time":"${time_custom}","id":"${id}","remote_ip":"${remote_ip}","host":"${host}","method":"${method}","uri":"${uri}","user_agent":"${user_agent}","status":${status},"error":"${error}","latency":${latency},"latency_human":"${latency_human}"`,"bytes_in":${bytes_in},"bytes_out":${bytes_out}}'
log_time_format: '2006-01-02 15:04:05.000'
assets:
view_path: "assets/views"
view_parse_files:
files:
- "wisdom.tmpl"
glob:
- "main/*.tmpl"
- "partial/*.tmpl"
public: "./dist"
wisdom:
skey: "YOUR-SKEY"
file_path: "./wisdom.json"
db:
dsn: "" # [user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN]
conn_max_lifetime: 300s
conn_max_idle_time: 300s
max_idle_conns: 10
max_open_conns: 50
logger_config:
# log_file: "/tmp/wisdom_app.log"
log_file: "console"
log_level: 4
slow_threshold: "200ms"
colorful: false
tool:
refresh_to_db: false