config.toml 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # 数据库连接
  2. [database]
  3. link = "mysql:root:123456@tcp(127.0.0.1:3306)/gfast"
  4. #web服务器配置
  5. [server]
  6. Address = ":8080"
  7. ServerRoot = "./public/resource"
  8. AccessLogEnabled = true
  9. ErrorLogEnabled = true
  10. PProfEnabled = true
  11. LogPath = "./data/log/server_log"
  12. SessionIdName = "sysSessionId"
  13. SessionPath = "./data/session"
  14. SessionMaxAge = "24h"
  15. DumpRouterMap = true
  16. # Redis数据库配置
  17. [redis]
  18. default = "127.0.0.1:6379,1"
  19. #jwt配置
  20. [gToken]
  21. CacheMode = 2
  22. CacheKey = "GToken:"
  23. Timeout = 0
  24. MaxRefresh = 0
  25. TokenDelimiter="_"
  26. EncryptKey = "koi29a83idakguqjq29asd9asd8a7jhq"
  27. AuthFailMsg = "登录超时,请重新登录"
  28. MultiLogin = true
  29. #单例日志配置 g.Log(单例名称)获取Logger单例对象时
  30. [logger]
  31. path = "./data/log/run_log"
  32. level = "all"
  33. stdout = true