Skip to content

jacekk/dead-simple-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2fd3ad3 · Apr 3, 2021

History

45 Commits
Jun 21, 2019
Aug 18, 2019
Aug 17, 2019
Aug 18, 2019
Aug 18, 2019
Jun 21, 2019
Aug 18, 2019
Aug 18, 2019
Aug 18, 2019
Apr 3, 2021
Aug 17, 2019
Aug 18, 2019
Jun 22, 2019

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published