From 8c3744ff8b80f9aede71af8938cd7732b117f8cb Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Mon, 13 Mar 2017 18:48:02 +0100 Subject: Add haproxy and iptables configuration for Kingbird Host binding was missing for kingbird Firewall rule that opens 8118 port was missing. NOTE: This is necessary but may not be enough, as curl on 172 and 192 network was refused. Change-Id: If950154012ee7b290a42a0774d5fdb782d6b065d Signed-off-by: Dimitri Mazmanov --- tools/kingbird/install_kingbird.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tools') diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh index 4cec1e1..dd166e9 100755 --- a/tools/kingbird/install_kingbird.sh +++ b/tools/kingbird/install_kingbird.sh @@ -171,6 +171,26 @@ iniset ${KINGBIRD_CONF_FILE} database connection "mysql://$mysql_user:$mysql_pas iniset ${KINGBIRD_CONF_FILE} database max_overflow -1 iniset ${KINGBIRD_CONF_FILE} database max_pool_size 1000 +# Configure haproxy + +cat > /etc/haproxy/conf.d/180-kingbird-api.cfg <