apt-get install -y libjansson-dev libssl-devdnf install -y jansson-devel openssl-develapk add --no-cache jansson-dev openssl-devClone with submodules so the nxe-json dependency is fetched alongside the module:
git clone --recursive https://github.com/kjdev/nginx-auth-jwt
cd nginx-auth-jwtIf you already cloned without --recursive, initialize the submodules explicitly:
git submodule update --init --recursiveNGINX_VERSION=1.x.x
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar -zxf nginx-${NGINX_VERSION}.tar.gzcd nginx-${NGINX_VERSION}./configure --add-dynamic-module=../makemake installAfter installation, load the module in nginx.conf:
load_module modules/ngx_http_auth_jwt_module.so;Build the image:
docker build -t nginx-auth-jwt .Run with a custom configuration:
docker run -p 80:80 -v $PWD/app.conf:/etc/nginx/http.d/default.conf nginx-auth-jwtA pre-built image is available from GitHub Packages:
docker pull ghcr.io/kjdev/nginx-auth-jwt/nginx- README.md: Module overview and quick start
- DIRECTIVES.md: Directive and variable reference
- EXAMPLES.md: Configuration examples
- INSTALL.md: Installation guide
- SECURITY.md: Security considerations
- TROUBLESHOOTING.md: Troubleshooting
- COMMERCIAL_COMPATIBILITY.md: Commercial version compatibility