2019-06-03 16:15:57 +08:00
|
|
|
apisix:
|
2019-09-09 17:42:20 +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-08-24 09:10:11 +08:00
|
|
|
enable_ipv6: true
|
2019-09-09 17:42:20 +08:00
|
|
|
config_center: etcd # etcd: use etcd to store the config value
|
|
|
|
# yaml: fetch the config value from local yaml file `/your_path/conf/apisix.yaml`
|
2019-08-29 15:55:13 +08:00
|
|
|
# allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
|
|
|
|
# - 127.0.0.0/24 # If we don't set any IP list, then any IP access is allowed by default.
|
|
|
|
# - "::/64"
|
2019-08-04 02:06:42 +08:00
|
|
|
# port_admin: 9180 # use a separate port
|
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-08-04 02:06:42 +08:00
|
|
|
router:
|
2019-08-20 13:03:25 +08:00
|
|
|
http: 'radixtree_uri' # r3_uri: match route by uri(base on r3)
|
2019-08-04 09:54:30 +08:00
|
|
|
# r3_host_uri: match route by host + uri(base on r3)
|
2019-08-12 09:04:41 +08:00
|
|
|
# radixtree_uri: match route by uri(base on radixtree)
|
2019-08-20 13:03:25 +08:00
|
|
|
|
|
|
|
ssl: 'radixtree_sni' # r3_sni: match route by SNI(base on r3)
|
|
|
|
# radixtree_sni: match route by SNI(base on radixtree)
|
2019-09-12 13:27:18 +08:00
|
|
|
# stream_proxy: # TCP/UDP proxy
|
|
|
|
# tcp: # TCP proxy port list
|
|
|
|
# - 9100
|
|
|
|
# - 9101
|
|
|
|
# udp: # UDP proxy port list
|
|
|
|
# - 9200
|
|
|
|
# - 9211
|
2019-06-03 16:15:57 +08:00
|
|
|
|
2019-04-11 16:53:21 +08:00
|
|
|
etcd:
|
2019-08-12 09:04:41 +08:00
|
|
|
host: "http://127.0.0.1:2379" # etcd address
|
|
|
|
prefix: "/apisix" # apisix configurations prefix
|
|
|
|
timeout: 1 # 1 seconds
|
2019-05-06 10:14:39 +08:00
|
|
|
|
2019-08-12 09:04:41 +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
|
2019-08-19 13:59:47 +08:00
|
|
|
- ip-restriction
|
2019-08-22 14:40:56 +08:00
|
|
|
- grpc-transcode
|
2019-08-26 10:37:36 +08:00
|
|
|
- serverless-pre-function
|
|
|
|
- serverless-post-function
|
2019-08-30 19:49:45 +08:00
|
|
|
- openid-connect
|
2019-09-16 10:58:27 +08:00
|
|
|
|
|
|
|
stream_plugins:
|
|
|
|
- mqtt-proxy
|