common.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [serve]
  2. jyhref = "https://www.jianyu360.cn/article/content/%s.html"
  3. [db]
  4. [db.mongo]
  5. addr = "127.0.0.1:27092"
  6. dbname = "qfw_data"
  7. size = 5
  8. user = "root"
  9. password = "root"
  10. [db.mongo1]
  11. addr = "127.0.0.1:27092"
  12. dbname = "wjh"
  13. size = 5
  14. user = ""
  15. password = ""
  16. [db.mongo2]
  17. addr = "127.0.0.1:27092"
  18. dbname = "zhengkun"
  19. size = 5
  20. user = ""
  21. password = ""
  22. [db.mysql]
  23. # mysql: [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]
  24. # root:123456@tcp(localhost:3306)/crocodile?charset=utf8mb4&parseTime=True&loc=Local
  25. #drivename = "mysql"
  26. #dsn = "root:=PDT49#80Z!RVv52_z@tcp(192.168.3.217:4000)/medical_fileld_data?charset=utf8mb4&parseTime=True&loc=Local"
  27. addr = "127.0.0.1:4001"
  28. dbnameBasic = "global_common_data"
  29. dbnameMedical = "medical_field_data_dev"
  30. size = 5
  31. user = "root"
  32. password = "Tibi#20211222"
  33. maxidle = 10
  34. maxconn = 20
  35. maxquerytime = "10s"
  36. [db.es]
  37. addr = "http://127.0.0.1:9800"
  38. size = 5
  39. indexm = "medical_institution_v1"
  40. typem = "medical_institution"
  41. indexs = "supplier_product_v1"
  42. types = "supplier_product"
  43. [db.es.fieldm]
  44. id = "int"
  45. company_id = "string"
  46. mi_name = "string"
  47. alias = "string"
  48. area_code = "string"
  49. level_code = "string"
  50. mi_type_code = "string"
  51. business_type = "int"
  52. sdequipment = "string"
  53. #fieldarrs = ["id", "company_id", "supplier", "productlist", "business_model", "area_code"]
  54. [db.es.fields]
  55. id = "int"
  56. company_id = "string"
  57. supplier = "string"
  58. productlist = ""
  59. business_model = "string"
  60. area_code = "string"
  61. # 日志
  62. [log]
  63. # 日志路径,为空将输出控制台
  64. logpath = ""
  65. # log size (M)
  66. maxsize = 10
  67. # compress log
  68. compress = true
  69. # log save time (day)
  70. maxage = 7
  71. # save total log file total
  72. maxbackups = 10
  73. # log level
  74. loglevel = "debug"
  75. # text or json output
  76. format = "text"