Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
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
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ if [[ -z "$SSO_CLIENT_ID" ]]; then
exit 1
fi

export LISTEN_IPV6="listen [::]:8080 default_server;"
if [ "$DISABLE_IPV6" = true ] ; then
export LISTEN_IPV6="# ${LISTEN_IPV6}"
fi

if [ -f ./nginx.conf.template ]; then
echo "---> Processing nginx.conf.template configuration file..."
envsubst '${CONTROLS_API_URL} ${SSO_SERVER_URL} ${APPLICATION_INVENTORY_API_URL} ${PATHFINDER_API_URL}' < ./nginx.conf.template > ./nginx.conf
envsubst '${LISTEN_IPV6} ${CONTROLS_API_URL} ${SSO_SERVER_URL} ${APPLICATION_INVENTORY_API_URL} ${PATHFINDER_API_URL}' < ./nginx.conf.template > ./nginx.conf
cp -v ./nginx.conf "${NGINX_CONF_PATH}"
rm -f ./nginx.conf
fi
Expand Down
2 changes: 1 addition & 1 deletion nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ http {

server {
listen 8080 default_server;
listen [::]:8080 default_server;
${LISTEN_IPV6}
server_name _;
root /opt/app-root/src;

Expand Down