sourikghosh / nginx-lua

uses openresty Lua module for Nginx to decode JWT and base64 encode the payload data with error and access logs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginx-Lua

uses openresty lua module to decode JWT from http-header

  • base64 encoded the payload
  • set the encoded payload data to X-headers

Usage

  • Using Docker

    docker build -t nginx-img .
    
    docker run -e JWT_SECRET="your_jwt_secret" nginx-img
  • Using Binary requires openresty nginx verify the nginx by which nginx

    to check the syntax

    nginx -p $PWD/ -t
    nginx -p $PWD/

    NOTE

    Default PORT 8080

About

uses openresty Lua module for Nginx to decode JWT and base64 encode the payload data with error and access logs.


Languages

Language:Lua 99.0%Language:Dockerfile 1.0%