Discover Packages
github.com/jacekk/dead-simple-proxy-server
module
Version:
v0.0.0-...-2fd3ad3
Opens a new window with list of versions in this module.
Published: Apr 3, 2021
License: MIT
Opens a new window with license information.
README
README
¶
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
cp dist.env .env -- and edit if necessary
make run-all &
http localhost:8080/proxy/example or curl localhost:8080/proxy/example
fg
CTRL + C
First release
git clone https://github.com/jacekk/dead-simple-proxy-server
cd dead-simple-proxy-server
make build
pm2 start ecosystem.config.js
Update
git pull
pm2 stop dead-simple-proxy-server
make build
pm2 reload ecosystem.config.js
pm2 restart dead-simple-proxy-server
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Expand ▾
Collapse ▴
Directories
¶
pkg
Click to show internal directories.
Click to hide internal directories.