config.yaml 971 B

123456789101112131415161718192021222324252627
  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. etcd:
  15. host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
  16. - "http://etcd:2379" # multiple etcd address
  17. prefix: "/apisix" # apisix configurations prefix
  18. timeout: 30 # 30 seconds
  19. plugin_attr:
  20. prometheus:
  21. export_addr:
  22. ip: "0.0.0.0"
  23. port: 9091