Lua脚本的proxy_pass不符合预期

我正在尝试使用Lua脚本创建反向代理,Nginx是我的代理。这是我的.lua脚本部分,用于进行proxy_pass:

if content == "200" then
  proxy_pass https://5dea42df1eeb.ngrok.io;
  ngx.print("OK!")
else
  return ngx.exit (ngx.HTTP_NOT_ALLOWED)
end

我总是收到500内部服务器错误,而且只有当我将这一行放入我的脚本时才会发生:

proxy_pass https://5dea42df1eeb.ngrok.io;

请让我知道我的实现有什么问题

点赞