conf.yaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. conf:
  18. listen:
  19. host: 0.0.0.0 # `manager api` listening ip or host name
  20. port: 9000 # `manager api` listening port
  21. allow_list: # If we don't set any IP list, then any IP access is allowed by default.
  22. - 0.0.0.0/0
  23. etcd:
  24. endpoints: # supports defining multiple etcd host addresses for an etcd cluster
  25. - "http://etcd:2379"
  26. # yamllint disable rule:comments-indentation
  27. # etcd basic auth info
  28. # username: "root" # ignore etcd username if not enable etcd auth
  29. # password: "123456" # ignore etcd password if not enable etcd auth
  30. mtls:
  31. key_file: "" # Path of your self-signed client side key
  32. cert_file: "" # Path of your self-signed client side cert
  33. ca_file: "" # Path of your self-signed ca cert, the CA is used to sign callers' certificates
  34. # prefix: /apisix # apisix config's prefix in etcd, /apisix by default
  35. log:
  36. error_log:
  37. level: warn # supports levels, lower to higher: debug, info, warn, error, panic, fatal
  38. file_path:
  39. logs/error.log # supports relative path, absolute path, standard output
  40. # such as: logs/error.log, /tmp/logs/error.log, /dev/stdout, /dev/stderr
  41. access_log:
  42. file_path:
  43. logs/access.log # supports relative path, absolute path, standard output
  44. # such as: logs/access.log, /tmp/logs/access.log, /dev/stdout, /dev/stderr
  45. # log example: 2020-12-09T16:38:09.039+0800 INFO filter/logging.go:46 /apisix/admin/routes/r1 {"status": 401, "host": "127.0.0.1:9000", "query": "asdfsafd=adf&a=a", "requestId": "3d50ecb8-758c-46d1-af5b-cd9d1c820156", "latency": 0, "remoteIP": "127.0.0.1", "method": "PUT", "errs": []}
  46. security:
  47. # access_control_allow_origin: "http://httpbin.org"
  48. # access_control_allow_credentials: true # support using custom cors configration
  49. # access_control_allow_headers: "Authorization"
  50. # access_control-allow_methods: "*"
  51. # x_frame_options: "deny"
  52. content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; frame-src *" # You can set frame-src to provide content for your grafana panel.
  53. authentication:
  54. secret:
  55. secret # secret for jwt token generation.
  56. # NOTE: Highly recommended to modify this value to protect `manager api`.
  57. # if it's default value, when `manager api` start, it will generate a random string to replace it.
  58. expire_time: 3600 # jwt token expire time, in second
  59. users: # yamllint enable rule:comments-indentation
  60. - username: admin # username and password for login `manager api`
  61. password: admin
  62. - username: user
  63. password: user
  64. plugins: # plugin list (sorted in alphabetical order)
  65. - api-breaker
  66. - authz-keycloak
  67. - basic-auth
  68. - batch-requests
  69. - consumer-restriction
  70. - cors
  71. # - dubbo-proxy
  72. - echo
  73. # - error-log-logger
  74. # - example-plugin
  75. - fault-injection
  76. - grpc-transcode
  77. - hmac-auth
  78. - http-logger
  79. - ip-restriction
  80. - jwt-auth
  81. - kafka-logger
  82. - key-auth
  83. - limit-conn
  84. - limit-count
  85. - limit-req
  86. # - log-rotate
  87. # - node-status
  88. - openid-connect
  89. - prometheus
  90. - proxy-cache
  91. - proxy-mirror
  92. - proxy-rewrite
  93. - redirect
  94. - referer-restriction
  95. - request-id
  96. - request-validation
  97. - response-rewrite
  98. - serverless-post-function
  99. - serverless-pre-function
  100. # - skywalking
  101. - sls-logger
  102. - syslog
  103. - tcp-logger
  104. - udp-logger
  105. - uri-blocker
  106. - wolf-rbac
  107. - zipkin
  108. - server-info
  109. - traffic-split