Skip to content

Commit

Permalink
bugfix(CLI): fixed node_ssl_listen conf not working #321 (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkill authored and membphis committed Jul 28, 2019
1 parent 011e0ef commit 198628d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,18 @@ local function init()
end

-- -- Using template.render
local sys_conf = setmetatable({
lua_path = package.path,
lua_cpath = package.cpath,
os_name = exec("uname"),
apisix_lua_home = apisix_home,
with_module_status = with_module_status,
node_ssl_listen = 9443, -- default value
},
{__index = yaml_conf.apisix}
)
local sys_conf = {
lua_path = package.path,
lua_cpath = package.cpath,
os_name = exec("uname"),
apisix_lua_home = apisix_home,
with_module_status = with_module_status,
node_ssl_listen = 9443, -- default value
}
for k,v in pairs(yaml_conf.apisix) do
sys_conf[k] = v
end

-- print(sys_conf.allow_admin)

local conf_render = template.compile(ngx_tpl)
Expand Down

0 comments on commit 198628d

Please sign in to comment.