config.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. apisix:
  2. node_listen: 9080 # APISIX listening port
  3. enable_ipv6: false
  4. allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
  5. - 0.0.0.0/0 # We need to restrict ip access rules for security. 0.0.0.0/0 is for test.
  6. admin_key:
  7. - name: "admin"
  8. key: edd1c9f034335f136f87ad84b625c8f1
  9. role: admin # admin: manage all configuration data
  10. # viewer: only can view configuration data
  11. - name: "viewer"
  12. key: 4054f7cf07e344346cd3f287985e76a2
  13. role: viewer
  14. enable_control: true
  15. control:
  16. ip: "0.0.0.0"
  17. port: 9092
  18. etcd:
  19. host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
  20. - "http://etcd:2379" # multiple etcd address
  21. prefix: "/apisix" # apisix configurations prefix
  22. timeout: 30 # 30 seconds
  23. plugin_attr:
  24. prometheus:
  25. export_addr:
  26. ip: "0.0.0.0"
  27. port: 9091