Skip to content

sourikghosh/nginx-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published