8-Kong和Consul如何结合
Posted robinunix
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了8-Kong和Consul如何结合相关的知识,希望对你有一定的参考价值。
如下配置文件中
# 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
以上是关于8-Kong和Consul如何结合的主要内容,如果未能解决你的问题,请参考以下文章
8.Kong入门与实战 基于Nginx和OpenResty的云原生微服务网关 --- 指标监控与报警
结合两个代码片段?将用户输入的 Youtube url 转换为嵌入 url,然后将 iframe src 替换为转换后的 url