conf.lua.tpl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. local _M = {}
  2. -- datacenter postgresql主数据库的配置
  3. local m_postgres = {}
  4. m_postgres['host'] = "18.221.221.161"
  5. m_postgres['port'] = 35012
  6. m_postgres['database'] = "sysmanager"
  7. m_postgres['user'] = "postgres"
  8. m_postgres['password'] = "CSv3PG.One!!!"
  9. _M['m_postgres'] = m_postgres
  10. -- datacenter postgresql从数据库的配置
  11. local s_postgres = {}
  12. s_postgres['host'] = "18.221.221.161"
  13. s_postgres['port'] = 35012
  14. s_postgres['database'] = "sysmanager"
  15. s_postgres['user'] = "postgres"
  16. s_postgres['password'] = "CSv3PG.One!!!"
  17. _M['s_postgres'] = s_postgres
  18. -- 用户上报请求链接
  19. _M['lslb_report_url'] = "http://18.221.221.161:8055/DataCollect"
  20. -- lslb异常上报请求连接
  21. _M['lslb_report_exp_url'] = "http://18.221.221.161:8055/DataCollect/live/exception"
  22. -- vlss最大链接数据的阈值比例
  23. _M['vlss_conn_percent'] = 0.9
  24. -- 最大上行带宽的额定比例
  25. _M['bandwidth_percent'] = 0.9
  26. -- safe_code
  27. _M['safe_code'] = "##svi&&lslb##"
  28. -- 与lslb交互des的密钥,必须是8位
  29. _M['safe_key'] = "==RiXVKU"
  30. -- dns服务器解析服务配置文件信息路径
  31. -- 如: /etc/resolv.dnsmasq.conf
  32. _M['resolver_path'] = "/etc/resolv.dnsmasq.conf"
  33. -- 配置本机slb的host,没有域名[ip:port]形式表示
  34. -- 有域名则是[域名:port]形式表示
  35. -- 如: 127.0.0.1:8080
  36. -- www.host.com:8080
  37. _M['slb_host'] = "lslb.cdn3.pro.pioas.com:18081"
  38. return _M