You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/20 15:54:43 UTC

[GitHub] [apisix] idbeta opened a new issue #2808: bug: example about how to enable Stream proxy is wrong

idbeta opened a new issue #2808:
URL: https://github.com/apache/apisix/issues/2808


   ### Issue description
   ```
   apisix:
     stream_proxy:                 # TCP/UDP proxy
       tcp:                        # TCP proxy address list
         - 9100
         - 127.0.0.1:9101
       udp:                        # UDP proxy address list
         - 9200
         - 127.0.0.1:9211
   ```
   should be 
   ```
   apisix:
     stream_proxy:                 # TCP/UDP proxy
       tcp:                        # TCP proxy port list
         - 9100
         - 9101
       udp:                        # UDP proxy port list
         - 9200
         - 9211
   ```
   otherwise
   ```
   nginx: [error] init_by_lua error: .../apisix//deps/share/lua/5.1/tinyyaml.lua:641: failed to classify line:         127.0.0.1:9101
   stack traceback:
   	[C]: in function 'error'
   	.../apisix//deps/share/lua/5.1/tinyyaml.lua:641: in function 'parsemap'
   ```
   ### Environment
   
   * apisix version (cmd: `apisix version`): master
   * OS:
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] starsz commented on issue #2808: bug: example about how to enable Stream proxy is wrong

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #2808:
URL: https://github.com/apache/apisix/issues/2808#issuecomment-731493387


   Hi, I think the doc had made a mistake on the YAML grammar.
   
   `127.0.0.1:9101`'s type is a string, so quotes should be used on this.
   
   Like this:
   
   ```
   apisix:
     stream_proxy:                 # TCP/UDP proxy
       tcp:                        # TCP proxy address list
         - 9100
         - "127.0.0.1:9101"
       udp:                        # UDP proxy address list
         - 9200
         - "127.0.0.1:9211"
   ```
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2808: bug: example about how to enable Stream proxy is wrong

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2808:
URL: https://github.com/apache/apisix/issues/2808


   


----------------------------------------------------------------
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:
users@infra.apache.org