Very quick playground project for experimenting with Lua based proxies in nginx
.
This is clumsily simulating part of the GitHub Pages architecture: a first Nginx server (pages-fe) proxying requests to a second one (pages-dfs).
You need docker
and docker-compose
as well as an environment capable of executing bash scripts.
To run the experiment, just execute:
./start.sh
Then hit one of the two routes:
Observe headers + response.
The configuration lives in pages.conf
.
Re-run the start script after a change.