diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-12-05 19:58:47 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-12-05 19:58:47 +0000 |
commit | 7c70ef4b0eea13672519e05d2a5112e2b4b4cacd (patch) | |
tree | 3488cfd386a19ff432381348dbfdf627a21327aa | |
parent | 3ba6befbd1a3d287753e24861075771616d5bb94 (diff) | |
download | infrastructure-7c70ef4b0eea13672519e05d2a5112e2b4b4cacd.tar.gz |
frontend: Add some info to README
-rw-r--r-- | README.mdwn | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/README.mdwn b/README.mdwn index 7cd0600e..06412fe6 100644 --- a/README.mdwn +++ b/README.mdwn @@ -36,6 +36,26 @@ To deploy this system: Full HAProxy 1.5 documentation: <https://cbonte.github.io/haproxy-dconv/configuration-1.5.html>. +When setting up a new instance with the frontend already deployed, do the +following: + +- request a subdomain that points at 85.199.252.162 +- log in to the frontend-haproxy machine +- edit /etc/haproxy.conf as described below, and make the same changes to the + copy in this repo +- run: `sudo haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf + $(cat /var/run/haproxy.pid)` to reload the configuration without interrupting + the service (this confuses systemd, but I'm not sure how to avoid that) + +If I was adding monkeys.baserock.org, this is what I'd add to the config file: + + # (in the 'frontend' section) + acl host_monkeys hdr(host) -m beg -i monkeys + use_backend baserock_monkey_service if host_monkeys + + backend baserock_monkey_service + server baserock_monkey_service 192.168.x.x + Database -------- |