apisix/conf/config.yaml
WenMing 9fa04a923c
feature: supported real_ip configure in nginx.conf and added functions to get ip and remote ip. (#236)
* feature: supported real_ip configure in nginx.conf and added functions to get ip and remote ip.

* fixed code style.
2019-07-12 11:25:17 +08:00

26 lines
786 B
YAML

apisix:
node_listen: 9080 # Apisix listening port
node_ssl_listen: 9443
enable_heartbeat: true
enable_admin: true
allow_admin: "127.0.0.0/24"
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:'
# port_admin: 9180 # use a separate port
etcd:
host: "http://127.0.0.1:2379" # etcd address
prefix: "/apisix" # apisix configurations prefix
timeout: 1 # 1 seconds
plugins: # plugin list
- example-plugin
- limit-req
- limit-count
- key-auth
- prometheus
- limit-conn
- node-status