Skip to content

Commit

Permalink
update helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
liverpool8056 committed Mar 25, 2024
1 parent ff7c582 commit ba343ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4217,13 +4217,17 @@ function db_proxy:start(opts)
local kong_conf = type(opts) == "table" and opts or {
prefix = "servroot_db_proxy",
database = "off",
-- the proxy should be in the data plane as this can avoid port conflict with the other kong instances.
role = "data_plane",
nginx_conf = "spec/fixtures/custom_nginx.template",
-- this is unused, but required for the template to include a http {} block
proxy_listen = "0.0.0.0:" .. get_available_port(),
-- this is unused, but required for the template to include a stream {} block
-- and this won't occupy 5555 port actually.
stream_listen = "0.0.0.0:5555",
-- As we specify the proxy working as a data plane, we need to specify the following certs
cluster_cert = "spec/fixtures/kong_clustering.crt",
cluster_cert_key = "spec/fixtures/kong_clustering.key",
}

self.prefix = kong_conf.prefix
Expand Down

0 comments on commit ba343ed

Please sign in to comment.