I am trying to make a reverse proxy with Lua script, Nginx is my proxy.
This is my .lua script part that makes the proxy_pass:
if content == "200" then
proxy_pass https://5dea42df1eeb.ngrok.io;
ngx.print("OK!")
else
return ngx.exit (ngx.HTTP_NOT_ALLOWED)
end
I always get 500 internal server error. And this is ONLY happens when I put this line into my script:
proxy_pass https://5dea42df1eeb.ngrok.io;
Please let me know what could be wrong with my implementation