Public | Automated Build

Last pushed: 7 hours ago
Short Description
Docker image with Nginx with Lua enabled on Alpine to guard endpoints using JWT.
Full Description

Nginx Gate

Docker image with Nginx with Lua enabled on Alpine to guard endpoints using
JWT.

Credits

This is a mix of ideas and code coming from Auth0's nginx-jwt
and SkyLothar's lua-resty-jwt
so, many thanks to them for all the work done.

Usage

docker run -d --name gate \
           --env JWT_SECRET=$(JWT_SECRET) \
           --env JWT_SECRET_IS_BASE64_ENCODED=true \
           -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf \
           -p 1080:80 \
           arnau/nginx-gate

Development

To build and install the Gate:

make && make install

In summary, the above compiles the Docker image and starts it running on
port 1080.

To test it, create a token and run try the secure endpoint:

make token # => eyJh...
make test-secure TOKEN=eyJh...
Docker Pull Command
Owner
arnau
Source Repository

Comments (0)