spread http(s) requests to different hosts based on hostname with http2 and sni ssl support
Clone repository, look at configs/example.org.json and define as many additional files as you want.
When done, fire up spreadr with
sudo node spreadr.js
You need to sudo because spreadr listens on port 80 & 443 and you need root access to bind on ports lower than 1024. If you want to listen on other ports, you may want to edit the spreadr.json file in root folder.
Pull latest docker image:
docker pull dnljst/spreadr
Start your machine:
docker run -d -p 80:80 -p 443:443 --name my-spreadr-container dnljst/spreadr
This command creates a new docker container based on the spreadr image named "my-spreadr-container" and exposes ports 80 and 443 to the new container.
Clone spreadr to your docker machine:
git clone https://github.com/dnl-jst/spreadr.git && cd spreadr
Edit configuration files, for example:
vim configs/example.org/config.json
When changes are done, build your custom docker image with your configuration:
docker build -t my-custom-spreadr-configuration .
You build your own image named "my-custom-spreadr-configuration". You can change that name to whatever you want.
Now you can run your custom container like this:
docker run -d -p 80:80 -p 443:443 --name my-custom-spreadr-container my-custom-spreadr-configuration
This will run a new docker container named "my-custom-spreadr-container" with our own image "my-custom-spreadr-configuration".
Content type
Image
Digest
sha256:0b2c46bcd…
Size
243.3 MB
Last updated
almost 10 years ago
docker pull dnljst/spreadr