Skip to content

Example of big file proxy #23

@misiek08

Description

@misiek08

I'm using lua with nginx and I need to do some piping. I need to auth in lua on 3rd party website and then download file but not to my server, but directly piping to user.

nginx ==> 3rdparty/auth
nginx <== 3rdparty: You are logged in
nginx ==> 3rdparty/get/file/x.tar.gz;
nginx <== 3rdparty: Here you are... binary data
nginx.on_3rdparty_chunk(data) ==> nginx.send_to_client(data)

Is it possible? Can you give a simple example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions