I have all my JSON files located in Redis cache.
I want to get it served through Nginx.
# redis-cli -h redis-master
redis-master:6379> get "zips/80202.json"
"{\"zipCode\":\"80202\",\"City\":\"DENVER\",\"StateCode\":\"CO\"}"
I would like to request the url to be like,
http://nginx-host/zips/80202.json
where nginx-host
and redis-master
are the services in Kubernetes.
expecting response with,
{"zipCode":"80202","City":"DENVER","StateCode":"CO"}
I am not finding a clear idea on how to configure Nginx. I am running with Kubernetes containers, so services are local with no authentication required to the Redis servers.