gtbio opened a new issue, #7802:
URL: https://github.com/apache/apisix/issues/7802

   ### Current Behavior
   
   when our config file(/usr/local/apisix/conf/config.yaml) setting like this:
   ```
   apisix:
     node_listen:                      # This style support multiple ports
       - 9080
       - 9081
     enable_admin: false
     ...
     stream_proxy:                  # TCP/UDP proxy
       only: true                   # use stream proxy only, don't enable HTTP 
stuff
       tcp:                         # TCP proxy port list
         - addr: 8080
         - addr: 8081
     ...
   ```
   the ports 9080,9081 listed behind "node_listen" will not listen
   
   ### Expected Behavior
   
   we expect config like this:
   ```
   apisix:
     http_proxy:
       - 9080 
       - 9081
     admin_listen:                # use a separate port
       ip: 127.0.0.1              # Specific IP, if not set, the default value 
is `0.0.0.0`.
       port: 9180
       enable_admin_cors: true
     ...
     stream_proxy:                  # TCP/UDP proxy
       tcp:                         # TCP proxy port list
         - addr: 8080
         - addr: 8081
     ...
   ```
   just delete "apisix.stream_proxy.only" and "apisix.enable_admin:true|false" 
attribute
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1:config like this ,your node_listen ports will not listen actually
   ```
    apisix:
     node_listen:                      # This style support multiple ports
       - 9080
       - 9081
     ...
     stream_proxy:                  # TCP/UDP proxy
       only: true                   # use stream proxy only, don't enable HTTP 
stuff
       tcp:                         # TCP proxy port list
         - addr: 8080
         - addr: 8081
     ...
   ```
   2:restart your apisix
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.14.1
   - Operating system (run `uname -a`): Linux host1 3.10.0-1127.19.1.el7.x86_64 
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx 
version: openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 3.5.4
   - APISIX Dashboard version, if relevant: -
   - Plugin runner version, for issues related to plugin runners: - 
   - LuaRocks version, for installation issues (run `luarocks --version`): -
   


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