You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org> on 2023/07/06 09:38:14 UTC

[GitHub] [apisix] monkeyDluffy6017 commented on a diff in pull request #9607: change: refactor logic for enabling L4/L7 proxy

monkeyDluffy6017 commented on code in PR #9607:
URL: https://github.com/apache/apisix/pull/9607#discussion_r1254190915


##########
conf/config-default.yaml:
##########
@@ -63,7 +63,27 @@ apisix:
       - name: memory_cache
         memory_size: 50m
 
-  delete_uri_tail_slash: false        # Delete the '/' at the end of the URI
+  delete_uri_tail_slash: false    # delete the '/' at the end of the URI
+
+  # http is the default proxy mode. proxy_mode can be one of `http`, `stream`, or `http&stream`
+  proxy_mode: http
+  #stream_proxy:                  # TCP/UDP proxy
+  #  tcp:                         # TCP proxy port list
+  #    - addr: 9100
+  #      tls: true
+  #    - addr: "127.0.0.1:9101"
+  #  udp:                         # UDP proxy port list
+  #    - 9200
+  #    - "127.0.0.1:9201"
+  #dns_resolver:                  # If not set, read from `/etc/resolv.conf`
+  #  - 1.1.1.1
+  #  - 8.8.8.8
+  #dns_resolver_valid: 30         # if given, override the TTL of the valid records. The unit is second.

Review Comment:
   The configuration is duplicated



-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org