config.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # 数据库连接
  2. [database]
  3. link = "mysql:root:123456@tcp(127.0.0.1:3306)/gfast_open"
  4. charset = "utf8mb4" #数据库编码
  5. maxIdle = "10" #连接池最大闲置的连接数
  6. maxOpen = "10" #连接池最大打开的连接数
  7. maxLifetime = "30" #(单位秒)连接对象可重复使用的时间长度
  8. debug = true
  9. #web服务器配置
  10. [server]
  11. Address = ":8200"
  12. ServerRoot = "./public/resource"
  13. AccessLogEnabled = true
  14. ErrorLogEnabled = true
  15. PProfEnabled = true
  16. LogPath = "./data/log/server_log"
  17. SessionIdName = "sysSessionId"
  18. SessionPath = "./data/session"
  19. SessionMaxAge = "24h"
  20. DumpRouterMap = true
  21. NameToUriType = 3
  22. # Redis数据库配置
  23. [redis]
  24. default = "127.0.0.1:6379,1"
  25. #jwt配置
  26. [gToken]
  27. CacheMode = 2
  28. CacheKey = "GToken:"
  29. Timeout = 0
  30. MaxRefresh = 0
  31. TokenDelimiter="_"
  32. EncryptKey = "koi29a83idakguqjq29asd9asd8a7jhq"
  33. AuthFailMsg = "登录超时,请重新登录"
  34. MultiLogin = true
  35. #单例日志配置 g.Log(单例名称)获取Logger单例对象时
  36. [logger]
  37. path = "./data/log/run_log"
  38. level = "all"
  39. stdout = true
  40. #casbin配置
  41. [casbin]
  42. modelFile="./config/casbin_conf/rbac_model.conf"
  43. policyFile="./config/casbin_conf/rbac_policy.csv"
  44. #后台相关配置
  45. [adminInfo]
  46. notCheckAuthAdminIds = [1,31] #无需验证后台权限的用户id
  47. pageNum = 5 #后台列表分页长度
  48. # Gen
  49. [gen]
  50. author = "gfast"
  51. moduleName = "module"
  52. packageName = "gfast"
  53. autoRemovePre = true
  54. tablePrefix = "t_,sys_"