Skip to content

Transparent proxy to the tarantool procedure via nginx #27

@zloidemon

Description

@zloidemon

As usual some projects can have any protocols over HTTP or serialization isn't equal JSON like google pb, apache avro and etc. Apache avro has own content-type:

Content-Type: "avro/binary"

Nginx module should pass all data to lua procedure into tarantool without deserialization data with headers like that:

function someaction(client, headers, params, data)
    -- do something here
    return headers, result
end
  • client should contain ip address and other information
  • headers are lua table
  • params pased params to http request and also lua table
  • data is body of request

Where someaction() is nginx location where will passed data over HTTP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions