Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ log_level=${LOG_LEVEL:-warn}
marathon_host=${MARATHON_HOST}
sleep_duration=${MARATHON_POLL_INTERVAL:-5}
force_reload_interval_s=${FORCE_RELOAD_INTERVAL_S:--1}
active_active_api_gateway_token=${ACTIVE_ACTIVE_API_GATEWAY_TOKEN}
active_active_namespace_0=${ACTIVE_ACTIVE_NAMESPACE_0}
active_active_namespace_1=${ACTIVE_ACTIVE_NAMESPACE_1}
active_active_set_upstream_interval=${ACTIVE_ACTIVE_SET_UPSTREAM_INTERVAL}
active_active_status_check_interval=${ACTIVE_ACTIVE_STATUS_CHECK_INTERVAL}
active_active_upstreams_csv_path=${ACTIVE_ACTIVE_UPSTREAMS_CSV_PATH}
active_active_weight_0=${ACTIVE_ACTIVE_WEIGHT_0}
active_active_weight_1=${ACTIVE_ACTIVE_WEIGHT_1}
active_active=${ACTIVE_ACTIVE:-false}

#
Expand Down Expand Up @@ -125,4 +133,4 @@ else
fi

echo " ... using log level: '${log_level}'. Override it with -e 'LOG_LEVEL=<level>' "
sudo -E api-gateway -p /usr/local/api-gateway/ -c /etc/api-gateway/api-gateway.conf -g "daemon off; error_log /dev/stderr ${log_level}; env ACTIVE_ACTIVE=${active_active};"
sudo api-gateway -p /usr/local/api-gateway/ -c /etc/api-gateway/api-gateway.conf -g "daemon off; error_log /dev/stderr ${log_level}; env ACTIVE_ACTIVE=${active_active}; env ACTIVE_ACTIVE_API_GATEWAY_TOKEN=${active_active_api_gateway_token}; env ACTIVE_ACTIVE_NAMESPACE_0=${active_active_namespace_0}; env ACTIVE_ACTIVE_NAMESPACE_1=${active_active_namespace_1}; env ACTIVE_ACTIVE_SET_UPSTREAM_INTERVAL=${active_active_set_upstream_interval}; env ACTIVE_ACTIVE_STATUS_CHECK_INTERVAL=${active_active_status_check_interval}; env ACTIVE_ACTIVE_UPSTREAMS_CSV_PATH=${active_active_upstreams_csv_path}; env ACTIVE_ACTIVE_WEIGHT_0=${active_active_weight_0}; env ACTIVE_ACTIVE_WEIGHT_1=${active_active_weight_1};"