config.toml 934 B

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