Skip to content

Commit

Permalink
address comment and set proxy_ssl_Verify_depth
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Nov 18, 2022
1 parent 6d1bb04 commit 80986dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kong/conf_loader/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ local function load(path, custom_conf, opts)
-- hybrid mode HTTP tunneling (CONNECT) proxy inside HTTPS
if conf.cluster_use_proxy then
-- throw err, assume it's already handled in check_and_infer
local parsed = assert(require("socket.url").parse(conf.proxy_server))
local parsed = assert(socket_url.parse(conf.proxy_server))
if parsed.scheme == "https" then
conf.cluster_ssl_tunnel = fmt("%s:%s", parsed.host, parsed.port or 443)
end
Expand Down
1 change: 1 addition & 0 deletions kong/templates/nginx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ stream {
> if lua_ssl_trusted_certificate_combined then
proxy_ssl_trusted_certificate '${{LUA_SSL_TRUSTED_CERTIFICATE_COMBINED}}';
> end
proxy_ssl_verify_depth 5; # 5 should be sufficient
> else
proxy_ssl_verify off;
> end
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/custom_nginx.template
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ server {
> if lua_ssl_trusted_certificate_combined then
proxy_ssl_trusted_certificate '${{LUA_SSL_TRUSTED_CERTIFICATE_COMBINED}}';
> end
proxy_ssl_verify_depth 5; # 5 should be sufficient
> else
proxy_ssl_verify off;
> end
Expand Down

0 comments on commit 80986dc

Please sign in to comment.