config.yaml.bak 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. server:
  2. address: ":8201"
  3. serverRoot: "resource/public"
  4. dumpRouterMap: true
  5. routeOverWrite: true
  6. openapiPath: "/api.json"
  7. swaggerPath: "/swagger"
  8. NameToUriType: 3
  9. maxHeaderBytes: "20KB"
  10. clientMaxBodySize: "50MB"
  11. # Logging配置
  12. logPath: "resource/log/server" # 日志文件存储目录路径,建议使用绝对路径。默认为空,表示关闭
  13. logStdout: true # 日志是否输出到终端。默认为true
  14. errorStack: true # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true
  15. errorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true
  16. errorLogPattern: "error-{Ymd}.log" # 异常错误日志文件格式。默认为"error-{Ymd}.log"
  17. accessLogEnabled: true # 是否记录访问日志。默认为false
  18. accessLogPattern: "access-{Ymd}.log" # 访问日志文件格式。默认为"access-{Ymd}.log"
  19. logger:
  20. path: "resource/log/run"
  21. file: "{Y-m-d}.log"
  22. level: "all"
  23. stdout: true
  24. # Database.
  25. database:
  26. logger:
  27. level: "all"
  28. stdout: true
  29. Path: "resource/log/sql"
  30. default:
  31. link: "mysql:gfast3:gfast333@tcp(192.168.0.212:3306)/gfast-v3"
  32. debug: true
  33. charset: "utf8mb4" #数据库编码
  34. dryRun: false #空跑
  35. maxIdle: 10 #连接池最大闲置的连接数
  36. maxOpen: 10 #连接池最大打开的连接数
  37. maxLifetime: 30 #(单位秒)连接对象可重复使用的时间长度
  38. gfToken:
  39. cacheKey: "gfToken_"
  40. timeOut: 10800
  41. maxRefresh: 5400
  42. multiLogin: true
  43. encryptKey: "49c54195e750b04e74a8429b17896586"
  44. cacheModel: "redis"
  45. excludePaths:
  46. - "/api/v1/system/xxx"
  47. - "/api/v1/system/xxx2"
  48. # Redis 配置示例
  49. redis:
  50. # 单实例配置
  51. default:
  52. address: 127.0.0.1:6379
  53. db: 1
  54. idleTimeout: 600
  55. maxActive: 100
  56. system:
  57. notCheckAuthAdminIds: [1,2,31] #无需验证后台权限的用户id
  58. dataDir: "./resource/data"
  59. cache:
  60. model: "redis" #缓存模式 memory OR redis
  61. prefix: "gFastV3Cache_" #缓存前缀
  62. #casbin配置
  63. casbin:
  64. modelFile: "./resource/casbin/rbac_model.conf"
  65. policyFile: "./resource/casbin/rbac_policy.csv"
  66. # CLI.
  67. gfcli:
  68. gen:
  69. dao:
  70. - link: "mysql:gfast3:gfast333@tcp(192.168.0.212:3306)/gfast-v3"
  71. tables: "sys_user_post"
  72. removePrefix: "gf_"
  73. descriptionTag: true
  74. noModelComment: true
  75. path: "./internal/app/system"
  76. # 上传配置
  77. upload:
  78. default: 0 # 默认上传至本地
  79. tencentCOS:
  80. upPath : "/gfast/"
  81. rawUrl : "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com"
  82. secretID : "AKIDsKckd83HTh0795wlKcyreyCfvDHYZmbk"
  83. secretKey : "2tc6Lj6LODppZ3aWCeqElBLcqzwz06zg"