Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoannchaudet/openresty-lua-proxy_pass-playground
https://github.com/yoannchaudet/openresty-lua-proxy_pass-playground
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yoannchaudet/openresty-lua-proxy_pass-playground
- Owner: yoannchaudet
- Created: 2021-09-30T02:13:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T18:21:49.000Z (about 1 year ago)
- Last Synced: 2024-10-26T11:20:36.217Z (2 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenResty – Lua proxy_pass Playground
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).
## Prerequisites
You need `docker` and `docker-compose` as well as an environment capable of executing bash scripts.
## Run
To run the experiment, just execute:
```sh
./start.sh
```Then hit one of the two routes:
- http://localhost:2511/fe
- http://localhost:2511/fe-default-hstsObserve headers + response.
The configuration lives in `pages.conf`.
Re-run the start script after a change.