config.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. SessionStorage = "redis"
  2. # HTTP Server
  3. [server]
  4. Address = ":8199"
  5. ServerRoot = "public"
  6. ServerAgent = "gf-app"
  7. LogPath = "/tmp/log/gf-app/server"
  8. #compiler
  9. [gfcli]
  10. [gfcli.build]
  11. name = "youngmini_server"
  12. arch = "amd64"
  13. system = "linux,windows"
  14. mod = "none"
  15. cgo = 0
  16. pack = ""
  17. version = "v1.0.3"
  18. output = "./bin"
  19. extra = ""
  20. # Logger.
  21. [logger]
  22. Path = "/tmp/log/gf-app"
  23. Level = "all"
  24. Stdout = true
  25. # Template.
  26. [viewer]
  27. Path = "template"
  28. DefaultFile = "index.html"
  29. Delimiters = ["{{", "}}"]
  30. # Database.
  31. [database]
  32. #link = "mysql:liming:123456@tcp(192.168.0.105:3306)/youngmini"
  33. link = "mysql:talent:talentDB_123@tcp(139.9.53.143:3306)/youngmini"
  34. debug = true
  35. # Database logger.
  36. [database.logger]
  37. Path = "/tmp/log/gf-app/sql"
  38. Level = "all"
  39. Stdout = true
  40. # redis
  41. [redis]
  42. default = "139.9.53.143:6379,younggeeRedis_123?idleTimeout=600"
  43. # mini program info
  44. [miniapp]
  45. appid = "wxac396a3be7a16844"
  46. appsecret = "73224fda5bd2a78cf7596771e95eb37a"