3 ms·
You can do it using the nginx-lua module, something like: `local response = ngx.location.capture("/some/api/endpoint" )` I would not recommend doing this, tho
by rkrzr 10y ago
You can do it using the nginx-lua module, something like:
`local response = ngx.location.capture("/some/api/endpoint" )`
I would not recommend doing this, though. Nginx internals are rather complicated in my experience.
- _kyran 10y agoThanks! So better off to just log to a file and monitor the tail of that and send the data off with a seperate script?