Revolyssup commented on code in PR #9607:
URL: https://github.com/apache/apisix/pull/9607#discussion_r1221333924
##########
apisix/cli/ops.lua:
##########
@@ -269,11 +269,21 @@ Please modify "admin_key" in conf/config.yaml .
"your openresty, please check it out.\n")
end
+ --- http is enabled by default
local enable_http = true
- if not yaml_conf.apisix.enable_admin and yaml_conf.apisix.stream_proxy and
- yaml_conf.apisix.stream_proxy.only ~= false
- then
- enable_http = false
+ --- stream is disabled by default
+ local enable_stream = false
+ local http = "http"
+ local stream = "stream"
+ if yaml_conf.apisix.proxy_mode then
+ -- check for "http" as prefix
+ if string.sub(yaml_conf.apisix.proxy_mode,1,#http) ~= http then
Review Comment:
done
##########
apisix/cli/schema.lua:
##########
@@ -136,6 +136,10 @@ local config_schema = {
}
}
},
+ proxy_mode = {
+ type = "string",
+ enum = {"http", "stream", "http&stream"},
+ },
Review Comment:
done
--
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]