mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
39 lines
934 B
TOML
39 lines
934 B
TOML
# 数据库连接
|
|
[database]
|
|
link = "mysql:root:123456@tcp(127.0.0.1:3306)/gfast"
|
|
debug = true
|
|
|
|
#web服务器配置
|
|
[server]
|
|
Address = ":8080"
|
|
ServerRoot = "./public/resource"
|
|
AccessLogEnabled = true
|
|
ErrorLogEnabled = true
|
|
PProfEnabled = true
|
|
LogPath = "./data/log/server_log"
|
|
SessionIdName = "sysSessionId"
|
|
SessionPath = "./data/session"
|
|
SessionMaxAge = "24h"
|
|
DumpRouterMap = true
|
|
|
|
|
|
# Redis数据库配置
|
|
[redis]
|
|
default = "127.0.0.1:6379,1"
|
|
|
|
#jwt配置
|
|
[gToken]
|
|
CacheMode = 2
|
|
CacheKey = "GToken:"
|
|
Timeout = 0
|
|
MaxRefresh = 0
|
|
TokenDelimiter="_"
|
|
EncryptKey = "koi29a83idakguqjq29asd9asd8a7jhq"
|
|
AuthFailMsg = "登录超时,请重新登录"
|
|
MultiLogin = true
|
|
|
|
#单例日志配置 g.Log(单例名称)获取Logger单例对象时
|
|
[logger]
|
|
path = "./data/log/run_log"
|
|
level = "all"
|
|
stdout = true |