Ehsan Fazeli's Blog

HomeBadges

Handling Geographical Cache Using Nginx and Lua

Feb 7, 20216 min read

The following approach uses Nginx to serve the user already cached data based on their geographical location. Assume we have an application, which gets the latitude and the longitude of the user, searches through a database which in this sample appli...

Use nginx as JWT authentication middleware

Aug 9, 2019

To have an authentication middleware inside Nginx itself has recently been an itch in my head. The idea is clean and straightforward. Read the request header and check the token, if it was verified let the request to proceed and otherwise block it. ...

© 2021 Ehsan Fazeli's Blog

PrivacyTerms
Proudly part of