upload-test.toml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # toml config
  2. [bm]
  3. addr = "0.0.0.0:6831"
  4. timeout = "15s"
  5. [orm]
  6. dsn = "test:test@tcp(172.16.33.205:3308)/bfs?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  7. active = 10
  8. idle = 10
  9. idleTimeout = "4h"
  10. [xlog]
  11. dir = "/data/log/bfs_upload/"
  12. #[xlog.elk]
  13. #project = "upload"
  14. #addr = "172.18.20.17:8520"
  15. #chanSize = 10240
  16. [bfs]
  17. BfsUrl = "uat-bfs.bilibili.co"
  18. WaterMarkUrl = "http://172.18.33.121:8090/imageserver/watermark/gen"
  19. ImageGenURL = "http://172.18.33.121:8090/imageserver/image/gen"
  20. TimeOut = "10s"
  21. WmTimeOut = "10s"
  22. ImageGenTimeOut = "10s"
  23. [antispam]
  24. Switch = true
  25. Second = 2
  26. N = 1
  27. Hour = 1
  28. M = 100
  29. [antispam.redis]
  30. Name = "bfs-upload"
  31. Proto = "tcp"
  32. Addr = "172.18.33.60:6931"
  33. Auth = ""
  34. Active = 10
  35. Idle = 10
  36. DialTimeout = "10s"
  37. ReadTimeout = "10s"
  38. WriteTimeout = "10s"
  39. IdleTimeout = "10s"
  40. [BfsBucket]
  41. Bucket = "active"
  42. Key = "fb8937a9ccd9b987"
  43. Sercet = "1b05f83578281f293a5b4dc7305fb2"
  44. [[Auths]]
  45. AppKey = "17760953ff"
  46. AppSercet = "d5563249e1a5105d5eb3"
  47. [[Auths]]
  48. AppKey = "pushflow"
  49. AppSercet = "ac78fe240a217b30f75e"
  50. [Auths.BfsBucket]
  51. Bucket = "live"
  52. Key = "b4cfeeadca80f6f5"
  53. Sercet = "b6e9e018302b96bc089a4c23046d16"
  54. [[Auths]]
  55. AppKey = "creative"
  56. AppSercet = "ec396e082dfec9638e3f"
  57. [Auths.BfsBucket]
  58. Bucket = "archive"
  59. Key = "8d4e593ba7555502"
  60. Sercet = "0bdbd4c7caeeddf587c3c4daec0475"
  61. [[Auths]]
  62. AppKey = "bigfun"
  63. AppSercet = "935fb994018b0ceed6fd"
  64. [Auths.BfsBucket]
  65. Bucket = "bigfun"
  66. Key = "710020da99a6f606"
  67. Sercet = "e04327de9cf3e3893194959061995b"
  68. [AuthInter]
  69. DisableCSRF = true
  70. [AuthInter.Identify]
  71. Dial = "500ms"
  72. Timeout = "5s"
  73. [AuthOut]
  74. DisableCSRF = false
  75. [AuthOut.Identify]
  76. Dial = "500ms"
  77. Timeout = "1s"