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/exampleorcurl localhost:8080/proxy/examplefg- CTRL + C
git clone https://github.com/jacekk/dead-simple-proxy-servercd dead-simple-proxy-servermake buildpm2 start ecosystem.config.js
git pullpm2 stop dead-simple-proxy-servermake buildpm2 reload ecosystem.config.jspm2 restart dead-simple-proxy-server
This project is licensed under the MIT License - see the LICENSE.txt file for details.