GBXing commented on issue #3673:
URL: https://github.com/apache/apisix/issues/3673#issuecomment-787925770


   @Yiyiyimu I use version 2.2 of default-config.yaml, this is my config.yaml:
   
        apisix:
          node_listen: 9080                # APISIX listening port
          enable_admin: true
          enable_admin_cors: true          # Admin API support CORS response 
headers.
          enable_debug: false
          enable_dev_mode: true           # Sets nginx worker_processes to 1 if 
set to true
          enable_reuseport: true           # Enable nginx SO_REUSEPORT switch 
if set to true.
          enable_ipv6: true
          config_center: etcd              # etcd: use etcd to store the config 
value
          allow_admin:
          admin_key:
                -
                  name: "admin"
                  key: edd1c9f034335f136f87ad84b625c8f1
                  role: admin                 # admin: manage all configuration 
data
                                                                          # 
viewer: only can view configuration data
                -
                  name: "viewer"
                  key: 4054f7cf07e344346cd3f287985e76a2
                  role: viewer
   
        nginx_config:
          error_log: "logs/error.log"
          error_log_level: "warn"
          http:
              lua_shared_dicts:
                  shared-datamap: 50m
   
        etcd:
          host:
                - "http://etcd-node1:2379";
                - "http://etcd-node2:2379";
                - "http://etcd-node3:2379";
                # - "http://127.0.0.1:2379";
                # - "http://172.17.0.1:2379";   
          prefix: "/apisix"           
          timeout: 30
          tls:
                verify: true
          # resync_delay: 5             
          # user: root                  
          # password: 5tHkHhYkjr6cQY    
   
   
   
        plugins:                          # plugin list (sorted in alphabetical 
order)
          - api-breaker
          - authz-keycloak
          - basic-auth
          - batch-requests
          - consumer-restriction
          - cors
          - echo
          # - error-log-logger
          # - example-plugin
          - fault-injection
          - grpc-transcode
          - hmac-auth
          - http-logger
          - ip-restriction
          - jwt-auth
          - kafka-logger
          - key-auth
          - limit-conn
          - limit-count
          - limit-req
          # - log-rotate
          # - node-status
          - openid-connect
          - prometheus
          - proxy-cache
          - proxy-mirror
          - proxy-rewrite
          - redirect
          - referer-restriction
          - request-id
          - request-validation
          - response-rewrite
          - serverless-post-function
          - serverless-pre-function
          # - skywalking
          - sls-logger
          - syslog
          - tcp-logger
          - udp-logger
          - uri-blocker
          - wolf-rbac
          - zipkin
          - server-info
          - traffic-split
   
        plugin_attr:
          log-rotate:
                interval: 3600
                max_kept: 168
          skywalking:
                service_name: APISIX
                service_instance_name: "APISIX Instance Name"
                endpoint_addr: http://127.0.0.1:12800
          prometheus:
                export_uri: /apisix/prometheus/metrics
          server-info:
                report_interval: 60
                report_ttl: 3600
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to