config.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # CLI.
  25. gfcli:
  26. gen:
  27. dao:
  28. - link: "mysql:root:123456@tcp(127.0.0.1:3306)/gfast-v3"
  29. tables: "sys_user"
  30. removePrefix: "gf_"
  31. descriptionTag: true
  32. noModelComment: true
  33. path: "./internal/app/system"