Skip to content

Commit

Permalink
Merge pull request metal3-io#300 from dtantsur/OCPBUGS-1799
Browse files Browse the repository at this point in the history
OCPBUGS-1799: use brackets for IPv6 addresses in ironic-proxy
  • Loading branch information
openshift-merge-robot authored Sep 28, 2022
2 parents 00d981d + eb86316 commit a91637f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/runironic-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export IRONIC_UPSTREAM_IP=${IRONIC_UPSTREAM_IP:-$IRONIC_IP}
export IRONIC_UPSTREAM_PORT=${IRONIC_UPSTREAM_PORT:-6385}
export IRONIC_UPSTREAM_PROTO=${IRONIC_UPSTREAM_PROTO:-$IRONIC_SCHEME}

if [[ "$IRONIC_UPSTREAM_IP" =~ .*:.* ]]; then
export IRONIC_UPSTREAM_IP="[$IRONIC_UPSTREAM_IP]"
fi

sed -i 's/^Listen .*$/Listen [::]:'"$HTTP_PORT"'/' /etc/httpd/conf/httpd.conf
# Log to std out/err
sed -i -e 's%^ \+CustomLog.*% CustomLog /dev/stderr combined%g' /etc/httpd/conf/httpd.conf
Expand Down

0 comments on commit a91637f

Please sign in to comment.