Dead Simple Proxy Server

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.

Requirements

  • Go [ =1.12 ]
  • pm2 [ >=3.5 ]

Development

  1. cp dist.env .env -- and edit if necessary
  2. make run-all &
  3. http localhost:8080/proxy/example or curl localhost:8080/proxy/example
  4. fg
  5. CTRL + C

First release

  1. git clone https://github.com/jacekk/dead-simple-proxy-server
  2. cd dead-simple-proxy-server
  3. make build
  4. pm2 start ecosystem.config.js

Update

  1. git pull
  2. pm2 stop dead-simple-proxy-server
  3. make build
  4. pm2 reload ecosystem.config.js
  5. pm2 restart dead-simple-proxy-server

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.