ccppoo / nginx_templates

useful nginx confs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx_templates

Every examples uses docker and docker-compose

1. Nginx njs with Typescript

Simple njs Typescript example

2. Nginx njs decoding JWT (not validating)

decoding JWT

this senario could use nginx as decoding JWT

JWT could be decrypted by anyone because it's just baed on base64 encoding

3. Nginx njs decoding JWT (validating with signed key)

decode and validating JWT

this senario could use nginx as JWT Authentication barear by validating JWT signed key

JWT are validated by key that are signed by issuer (that should not be exposed in public)

About

useful nginx confs


Languages

Language:JavaScript 55.2%Language:TypeScript 44.8%