2019-06-03 16:15:57 +08:00
|
|
|
apisix:
|
2019-06-05 10:22:24 +08:00
|
|
|
node_listen: 9080 # Apisix listening port
|
2019-07-04 22:44:57 +08:00
|
|
|
node_ssl_listen: 9443
|
2019-06-10 16:43:13 +08:00
|
|
|
enable_heartbeat: true
|
2019-06-13 12:01:36 +08:00
|
|
|
enable_admin: true
|
2019-07-27 09:10:06 +08:00
|
|
|
enable_debug: false
|
2019-06-17 15:57:02 +08:00
|
|
|
allow_admin: "127.0.0.0/24"
|
2019-07-12 11:25:17 +08:00
|
|
|
real_ip_header: "X-Real-IP" # http://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header
|
|
|
|
real_ip_from: # http://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from
|
|
|
|
- 127.0.0.1
|
|
|
|
- 'unix:'
|
2019-07-03 21:03:17 +08:00
|
|
|
# port_admin: 9180 # use a separate port
|
2019-07-28 19:37:31 +08:00
|
|
|
route_idx: 'uri' # how to create the route index:
|
|
|
|
# `uri`: only use `uri` for routing
|
|
|
|
# `host + uri`: use `host + uri` for routing
|
2019-06-03 16:15:57 +08:00
|
|
|
|
2019-04-11 16:53:21 +08:00
|
|
|
etcd:
|
2019-06-05 10:22:24 +08:00
|
|
|
host: "http://127.0.0.1:2379" # etcd address
|
2019-06-05 14:21:25 +08:00
|
|
|
prefix: "/apisix" # apisix configurations prefix
|
2019-06-13 12:01:36 +08:00
|
|
|
timeout: 1 # 1 seconds
|
2019-05-06 10:14:39 +08:00
|
|
|
|
2019-06-13 12:01:36 +08:00
|
|
|
plugins: # plugin list
|
2019-05-07 15:58:44 +08:00
|
|
|
- example-plugin
|
2019-05-20 16:50:43 +08:00
|
|
|
- limit-req
|
2019-05-21 11:17:46 +08:00
|
|
|
- limit-count
|
2019-07-26 17:16:31 +08:00
|
|
|
- limit-conn
|
2019-05-23 15:19:07 +08:00
|
|
|
- key-auth
|
2019-05-24 22:38:40 +08:00
|
|
|
- prometheus
|
2019-06-22 08:24:02 +08:00
|
|
|
- node-status
|
2019-07-24 16:59:37 +08:00
|
|
|
- jwt-auth
|
2019-07-26 17:16:31 +08:00
|
|
|
- zipkin
|