Hi,
I am very new to OpenResty . I am trying to serve some static protected content. Once the authentication is done I am mapping a URL to static content files on the server, they are html, images, scripts, audio, video files, etc. How can I serve a file from the Lua code? The content should not be available directly and only through the Lua code. I thought about ngx.location.capture but that I think captures a location that is also accessible directly?
Thanks!