tzssangglass commented on code in PR #7860:
URL: https://github.com/apache/apisix/pull/7860#discussion_r964799400
##########
apisix/cli/snippet.lua:
##########
@@ -70,6 +70,15 @@ function _M.generate_conf_server(env, conf)
end
end
+ local ssl_trusted_certificate
+ local etcd_tls_verify = etcd.tls.verify
Review Comment:
refactor
##########
apisix/cli/snippet.lua:
##########
@@ -70,6 +70,15 @@ function _M.generate_conf_server(env, conf)
end
end
+ local ssl_trusted_certificate
+ local etcd_tls_verify = etcd.tls.verify
+ if enable_https and etcd_tls_verify then
+ if not conf.apisix.ssl.ssl_trusted_certificate then
+ return nil, "should set ssl_trusted_certificate if etcd tls verify
is enabled"
Review Comment:
removed
--
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]