Nginx + LUA, how to output file?
snippet in lua

Nginx + LUA, how to output file?

user9208

content_by_lua '
    local file = "/path..."
    local f = io.open(file, "rb")
    local content = f:read("*all")
    f:close()
    ngx.print(content)
';