You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
667 B

2 weeks ago
  1. # https://goframe.org/docs/web/server-config-file-template
  2. server:
  3. address: ":8000"
  4. openapiPath: "/api.json"
  5. swaggerPath: "/swagger"
  6. # https://goframe.org/docs/core/glog-config
  7. logger:
  8. level : "all"
  9. stdout: true
  10. # https://goframe.org/docs/core/gdb-config-file
  11. database:
  12. default:
  13. link: "mysql:root:root@tcp(127.0.0.1:3306)/link_test?loc=Local&parseTime=true"
  14. createdAt: "create_time"
  15. updatedAt: "update_time"
  16. redis:
  17. default: # 默认实例,用于常规操作
  18. address: "127.0.0.1:6379"
  19. db: 0
  20. password: ""
  21. cache: # 缓存专用实例
  22. address: "127.0.0.1:6379"
  23. db: 1
  24. password: ""