Is there an example ( or is it even possible ) to replicate the nginx http_sub module with lua?
I'm in a situation where I need to do what http_sub does, but the nginx binary isn't compiled with http_sub and I can't recompile it. It does, however, have the lua module. Was hoping there was an easy way to do some simple substitutions on the response content. Something like:
sub_filter '</body>' '<span>Hello world</span></body>';
Thanks.