diff options
author | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2017-03-14 13:55:32 +0100 |
---|---|---|
committer | Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> | 2017-03-14 13:55:32 +0100 |
commit | a8d4ece6e06dd34fc0d5e2708dd861a8f7c77441 (patch) | |
tree | 7b7a7e0d5357385d7290e63722adc9285b86902c /tools/kingbird/install_kingbird.sh | |
parent | dd5f7c1ddf1a73013214fcc35b3c048e553bcc5f (diff) |
Parameterize the public and internal IP values
Change-Id: Ic4140d0e8eb8fc59319ae5e7bf0c16800aac807e
Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
Diffstat (limited to 'tools/kingbird/install_kingbird.sh')
-rwxr-xr-x | tools/kingbird/install_kingbird.sh | 6 |
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 |