fixed haproxy
This commit is contained in:
parent
31a7be59d0
commit
99aa46e149
1 changed files with 3 additions and 20 deletions
23
README.md
23
README.md
|
@ -124,28 +124,11 @@ example:
|
||||||
|
|
||||||
### file sync:
|
### file sync:
|
||||||
|
|
||||||
since our external machine might be compromised it might not be
|
we want to sync all the configurations on the various servers from a single, maybe shared, point
|
||||||
|
to do that we'll use a git repo where we'll add the configuration,
|
||||||
|
a script called by cron will check every 2min if the repo changes and download new haproxy config files and restart the service.
|
||||||
|
|
||||||
|
|
||||||
configuration of auto pull:
|
|
||||||
|
|
||||||
create ssh key
|
|
||||||
add ssh key to gogs in the repo under "Settings" --> "Deploy Keys"
|
|
||||||
|
|
||||||
echo 'AddKeysToAgent yes' >> ~/.ssh/config
|
|
||||||
|
|
||||||
echo "eval `ssh-agent`" >> ~/.bashrc
|
|
||||||
echo "ssh-add" >> ~/.bashrc
|
|
||||||
|
|
||||||
nano ~/.ssh/config
|
|
||||||
Host gitserv
|
|
||||||
Hostname git.lattuga.net
|
|
||||||
IdentityFile ~/.ssh/geo-bal-02_id_rsa
|
|
||||||
IdentitiesOnly yes
|
|
||||||
AddKeysToAgent yes
|
|
||||||
|
|
||||||
git clone gogs@git.lattuga.net:panda/geo-bal_configs.git
|
|
||||||
|
|
||||||
## todo:
|
## todo:
|
||||||
- [ ] bind: check TTLs and optimize
|
- [ ] bind: check TTLs and optimize
|
||||||
- [ ] bind: better define failover behaviour
|
- [ ] bind: better define failover behaviour
|
||||||
|
|
Loading…
Reference in a new issue