summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-14 13:55:32 +0100
committerChaoyi Huang <joehuang@huawei.com>2017-03-17 06:03:17 +0000
commit63fa4734f45099995e60000c8b77e1b11b87d154 (patch)
tree7b7a7e0d5357385d7290e63722adc9285b86902c
parentf8ad193d3ff836fbbce1f93733426b205eab6d7c (diff)
Parameterize the public and internal IP values
Change-Id: Ic4140d0e8eb8fc59319ae5e7bf0c16800aac807e Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> (cherry picked from commit a8d4ece6e06dd34fc0d5e2708dd861a8f7c77441)
-rwxr-xr-xtools/kingbird/install_kingbird.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh
index 63d84c4..7480e59 100755
--- a/tools/kingbird/install_kingbird.sh
+++ b/tools/kingbird/install_kingbird.sh
@@ -175,8 +175,8 @@ iniset ${KINGBIRD_CONF_FILE} database max_pool_size 1000
cat > /etc/haproxy/conf.d/180-kingbird-api.cfg <<EOF
listen kingbird-api
- bind 172.16.0.3:8118
- bind 192.168.0.2:8118
+ bind ${KINGBIRD_PUBLIC_URL}:${KINGBIRD_PORT}
+ bind ${KINGBIRD_INTERNAL_URL}:${KINGBIRD_PORT}
http-request set-header X-Forwarded-Proto https if { ssl_fc }
option httpchk
http-check expect status 401
@@ -185,7 +185,7 @@ listen kingbird-api
option http-buffer-request
timeout server 660s
timeout http-request 10s
- server node-4 ${bind_host}:8118 check inter 10s fastinter 2s downinter 3s rise 3 fall 3
+ server node-4 ${bind_host}:${KINGBIRD_PORT} check inter 10s fastinter 2s downinter 3s rise 3 fall 3
EOF
service haproxy restart