Jasonbr commented on issue #10795:
URL: https://github.com/apache/apisix/issues/10795#issuecomment-1891193180

   @sheharyaar
   the same problem. 
   my config.yaml
   apisix:
     ssl:
       fallback_sni: "0.0.0.0"
       listen_port:
         - 9443
     node_listen: 9080              # APISIX listening port
     enable_ipv6: false
     show_upstream_status_in_response_header: true
   
     allow_admin:                  # 
http://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.
       #- 172.0.0.0/8
   
     admin_key:
       - name: "admin"
         key: 8c1c43c1f0ae5ed11a1939df0a5119be
         role: admin                 # admin: manage all configuration data
                                     # viewer: only can view configuration data
       - name: "viewer"
         key: 4054f7cf07e344346cd3f287985e76a2
         role: viewer
     
     enable_control: true
     control:
       ip: "0.0.0.0"
       port: 9092
   
   etcd:
     host:                           # it's possible to define multiple etcd 
hosts addresses of the same etcd cluster.
       - "http://etcd:2379";     # multiple etcd address
     prefix: "/apisix"               # apisix configurations prefix
     timeout: 30                     # 30 seconds
   
   plugin_attr:
     prometheus:
       export_addr:
         ip: "0.0.0.0"
         port: 9091
   
   plugins:
       # the plugins you enabled
       - log-rotate
   plugin_attr:
       log-rotate:
           interval: 3600    # rotate interval (unit: second)
           max_kept: 24     # max number of log files will be kept
           max_size: -1      # max size of log files will be kept
           enable_compression: false    # enable log file compression(gzip) or 
not, default false
   
   #nacos
   discovery:
     nacos:
       host:
         - "http://nacos:[email protected]:9080";
       prefix: "/nacos/v1/"
       fetch_interval: 30    # default 30 sec
       weight: 100           # default 100
       timeout:
         connect: 2000       # default 2000 ms
         send: 2000          # default 2000 ms
         read: 5000          # default 5000 ms
   
   
   
   zhe route, upstream 
   
   {
     "uri": "/fileManage/*",
     "name": "mino",
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH",
       "HEAD",
       "OPTIONS",
       "CONNECT",
       "TRACE"
     ],
     "plugins": {
       "proxy-rewrite": {
         "regex_uri": [
           "/fileManage/(.*)",
           "/$1"
         ]
       }
     },
     "upstream": {
       "nodes": [
         {
           "host": "ip",
           "port": 9321,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 600,
         "send": 600,
         "read": 600
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "status": 1
   }
   


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