Almost dead simple.
First iteration just allowed to configure urls to serve content from. The next one to rewrite body content of proxied urls. The current version allows to precache urls based on configured interval. In case of errors while refreshing the cache, the last successful response is being served.
cp dist.env .env
-- and edit if necessarymake run-all &
http localhost:8080/proxy/example
orcurl localhost:8080/proxy/example
fg
- CTRL + C
git clone https://github.com/jacekk/dead-simple-proxy-server
cd dead-simple-proxy-server
make build
pm2 start ecosystem.config.js
git pull
pm2 stop dead-simple-proxy-server
make build
pm2 reload ecosystem.config.js
pm2 restart dead-simple-proxy-server
This project is licensed under the MIT License - see the LICENSE.txt file for details.