8-Kong和Consul如何结合

隐身守侯 提交于 2019-12-25 18:47:42

如下配置文件中

# cat /etc/kong/kong.conf | sed 's#\s*##' | grep -v '^#' | grep -v '^$'
anonymous_reports = off         # Send anonymous usage data such as error
upstream_keepalive = 1         # Sets the maximum number of idle keepalive
database = postgres             # Determines which of PostgreSQL or Cassandra
pg_host = rm-xxxxxxxxxxx.pg.rds.aliyuncs.com
pg_port = 3433                  # The port to connect to.
pg_user = kong                  # The username to authenticate if required.
pg_password = xxxxxxxx                 # The password to authenticate if required.
pg_database = kong              # The database name to connect to.
dns_resolver = 127.0.0.1:8600					 # the local `resolv.conf` file will be used.
dns_order = SRV,A,CNAME    # The order in which to resolve different

  

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!