---
title: "Ehsan Fazeli (@ehsanfa) | Hashnode"
description: "Software Engineer. Read the latest articles by Ehsan Fazeli on Hashnode."
url: "https://hashnode.com/@ehsanfa"
---

@ehsanfa

# Ehsan Fazeli

@ehsanfa · Darmstadt, Germany · Joined February 2019

Software Engineer

### [Handling Geographical Cache Using Nginx and Lua](https://ehsanfa.hashnode.dev/handling-geographical-cache-using-nginx-and-lua?utm_source=hashnode&utm_medium=feed)

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...

6 min read · [ehsanfa.hashnode.dev](https://ehsanfa.hashnode.dev/handling-geographical-cache-using-nginx-and-lua?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/handling-geographical-cache-using-nginx-and-lua/60203b1a636acc2a3823035a) [Feb 7, 2021](https://hashnode.com/posts/handling-geographical-cache-using-nginx-and-lua/60203b1a636acc2a3823035a)

### [Use nginx as JWT authentication middleware](https://ehsanfa.hashnode.dev/use-nginx-as-jwt-authentication-middleware?utm_source=hashnode&utm_medium=feed)

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. ...

[ehsanfa.hashnode.dev](https://ehsanfa.hashnode.dev/use-nginx-as-jwt-authentication-middleware?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/use-nginx-as-jwt-authentication-middleware/5d4da6b5fce164e52feebc4e) [Aug 9, 2019](https://hashnode.com/posts/use-nginx-as-jwt-authentication-middleware/5d4da6b5fce164e52feebc4e)
