spro/simon
View on GitHub ↗ ★ 74 Lua
Dynamic routing/vhosts for nginx with Lua + Redis
3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2015-07-26 · latest 2017-04-03
20082026
-
▲ 1
Show HN: Simon, a simple approach to dynamic hosts with Redis + Lua + Nginxstory by sprobertson · 2017-04-03 · 0 comments
-
I use it between nginx and backend servers, to do routing/proxying based on hostnames in Redis: https://github.com/spro/simon I have been slowly working towards a full express clone, but don't have a compelling reason to complete it.
comment by sprobertson · 2016-11-24 · in The Lua VM, on the Web -
Lua + Redis is a nice way to do this, I have a small project https://github.com/spro/simon that does dynamic routing and load balancing based on Hostname -> IP:Port sets in Redis. Adding a new route is as simple as: sadd backends:hnapi.dev…
comment by sprobertson · 2015-07-26 · in Nginx with dynamic upstreams