ETCD后台服务
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.

56 lines
982 B

3 years ago
  1. # debug模式
  2. debug = false
  3. # 日志文件路径
  4. log_path = ""
  5. # http 监听端口
  6. [http]
  7. # 监听地址
  8. address = "0.0.0.0"
  9. # 监听端口
  10. port = 9002
  11. # 使用 Let's Encrypt 证书 - tls_enable为true优先使用本地证书模式
  12. tls_encrypt_enable = false
  13. # 域名列表
  14. tls_encrypt_domain_names = ["your-domain.com"]
  15. # 是否启用tls
  16. tls_enable = false
  17. # tls证书文件
  18. [http.tls_config]
  19. cert_file = "cert_file"
  20. key_file = "key_file"
  21. ## mssql 配置
  22. [db]
  23. ## 是否调试模式
  24. debug = true
  25. ## 数据库连接地址 - make docker_run 不可以是127.0.0.1
  26. address = "101.201.121.115"
  27. ## 数据库端口
  28. port = 1433
  29. ## 连接池最大连接数
  30. max_idle_conns = 64
  31. ## 默认打开连接数
  32. max_open_conns = 24
  33. ## 数据库用户名
  34. user = "sa"
  35. ## 数据库密码
  36. passwd = "Leit2020"
  37. ## 数据库名
  38. db_name = "LAPP_ETCD"
  39. [etcd]
  40. etcd_id = 1
  41. version = "v3"
  42. address = "127.0.0.1:2379"
  43. tls_enable = false
  44. cert_file = ""
  45. key_file = ""
  46. ca_file = ""
  47. username = ""
  48. password = ""