fixed haproxy

This commit is contained in:
panda 2021-12-28 18:23:39 +01:00
parent 31a7be59d0
commit 99aa46e149

View file

@ -124,28 +124,11 @@ example:
### 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:
- [ ] bind: check TTLs and optimize
- [ ] bind: better define failover behaviour