Authored by chunhua.zhang

bug fix

# copy sec.config.json to remote openresty server and reload nginx
# copy /root/.cert/sec.config.json to remote openresty server and reload nginx
- hosts: sec
tasks:
- name: copy lua and config files
... ...
... ... @@ -93,7 +93,6 @@ function get_redirect_url()
local redirectPath = "/apigateway"
local awsPath = "/apiaws"
init_read_body()
-- get params
local force_uid = switch_controller.get_force_uid()
... ... @@ -122,6 +121,9 @@ end
---- main
function main()
init_read_body()
local _status, _msg = pcall(do_degrade)
if not _status then
ngx.log(ngx.ERR, "call method [do_degrade] failed.", _msg)
... ...