Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A reverse proxy you can configure with curl

Mostly an educational exercise on how to use lua to bend requests on nginx.

sudo docker build -t chanux/rusty .

sudo docker run --name rusty -d chanux/rusty

To configure the reverse proxy do the following:

Let point to proxy container's IP. Also you need to set other domain/subdomains in the hosts file

$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' proxy
$ cat /etc/hosts localhost

To configure, pass the appropriate backend's IP as follows


You can set the reverse proxy records for other domains the same way.


Rusty can store this data on redis. You just have to connect a redis container as 'redis' when you run Rusty.

sudo docker run --link redis:redis --name rusty -d chanux/rusty

To troubleshoot, you can get a terminal to proxy container and check the nginx logs

$ docker exec -it proxy bash
$ tail -f /var/log/nginx/error.log
You can’t perform that action at this time.