renshunhang commented on issue #12230:
URL: https://github.com/apache/apisix/issues/12230#issuecomment-2892787136

   > Need to describe what version you are using? How it was deployed and the 
corresponding config file.
   
   Version is 3.11.0, and I deploy it with K8S, the config is :
   kind: ConfigMap
   apiVersion: v1
   metadata:
     name: apisix
     namespace: apisix
   data:
     config.yaml: >-
       plugins:
         - openai-token-collector
         - safe-check-forward
         - prometheus
         - loki-logger
         - public-api
         - server-info
         - cors
         - limit-conn
         - limit-req
         - limit-count
         - proxy-rewrite
         - redirect
         - real-ip
       apisix:
         node_listen: 9080              # APISIX listening port
         enable_ipv6: false
         enable_control: true
         enable_admin_cors: true
         control:
           ip: "0.0.0.0"
           port: 9092
       nginx_config:
           http_configuration_snippet: |
             client_header_buffer_size 4m;
             large_client_header_buffers 4 4m;
             proxy_buffer_size 256k;
             proxy_buffers 4 512k;
             proxy_busy_buffers_size 512k;
       deployment:
         admin:
           allow_admin:               # 
https://nginx.org/en/docs/http/ngx_http_access_module.html#allow
             - 0.0.0.0/0              # We need to restrict ip access rules for 
security. 0.0.0.0/0 is for test.
       
           admin_key:
             - name: "admin"
               key: edd1c9f034335f136f87ad84b625c222
               role: admin                 # admin: manage all configuration 
data
       
             - name: "viewer"
               key: 4054f7cf07e344346cd3f287985e7333
               role: viewer
       
         etcd:
           host:                           # it's possible to define multiple 
etcd hosts addresses of the same etcd cluster.
             - "http://apisix-etcd.apisix.svc.cluster.local:2379";
           prefix: "/apisix"               # apisix configurations prefix
           timeout: 30                     # 30 seconds
       
       plugin_attr:
         prometheus:
           export_addr:
             ip: "0.0.0.0"
             port: 9091


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to