http server which allows sneaky http request though it.
Be sure you have crystal > 0.18
crystal deps
crystal compile ./src/http_distributor --release
according to crystal-lang.org
cd http_distributor/
heroku create --buildpack https://github.com/crystal-lang/heroku-buildpack-crystal.git
git push heroku master
./http_distributor [--port=PORT]
###Â Configuration
####Â Environment variables
change_agent_probability
wait_fixed
wait_random_min
andwait_random_max
wait_delay_coefficient
/get/url_base64_encoded
/config
/domains
/ping
You need an authentication token to do any request.
This token may be specified in an environment variable AUTH_TOKEN
.
If the token is not specified, it is automatically created when the server
starts, randomly, and wrote on the stderr.
The auth token must be specified in query parameter.
Example: /get/xxx?auth_token=xxx
The project is divided in 3 parts.
This directory contains the http rules, and use Kemal.
This part contains only the helper used by the proxy part.
This is the main library. It contains every important classes oft he project.
- Fork it ( https://github.com/Nephos/http_distributor/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- Nephos Arthur Poulet - creator, maintainer