Skip to content
No description, website, or topics provided.
Nginx Python Shell
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead, 21 commits behind beda-software:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
balancer
tests
.gitignore
.travis.yml
README.md
docker-compose-tests.yml
docker-compose.yml
run_tests.sh

README.md

##brogency/balancer

Load balanser build with etcd, conf and nginx, see configuration below.

Create host dir:
curl -L http://127.0.0.1:4001/v2/keys/hosts -XPUT -d dir=true

Create host config var:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world -XPUT -d -d dir=true

Enable host:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/enable -XPUT -d value=True

Set hostname:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/server_name -XPUT -d value=hello2.localhost

Set media overriding:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/media -XPUT -d value=/home/helloworld/media

Create static file serving:
curl -L http://127.0.0.1:4001/v2/keys/hosts/static/hello/enable -XPUT -d value=true curl -L http://127.0.0.1:4001/v2/keys/hosts/static/hello/server_name -XPUT -d value="hello.world" curl -L http://127.0.0.1:4001/v2/keys/hosts/static/hello/media -XPUT -d value="/var/www/hello"

Enable nginx base caches:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/caches/static/path -XPUT -d value="/static/"

You can’t perform that action at this time.