Skip to content
This repository was archived by the owner on Aug 25, 2019. It is now read-only.

Fix Aphlict when running with a custom port #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions preflight/10-boot-conf
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ if [ "$MYSQL_STORAGE_NAMESPACE" != "" ]; then
sudo -u "$PHABRICATOR_VCS_USER" ./bin/config set storage.default-namespace "$MYSQL_STORAGE_NAMESPACE"
fi
if [ "$PHABRICATOR_HOST" != "" ]; then
PHABRICATOR_PORT=$(echo $PHABRICATOR_HOST | awk -F : '{print $2 }')
if [ "$SSL_TYPE" == "none" ]; then
sudo -u "$PHABRICATOR_VCS_USER" ./bin/config set phabricator.base-uri "http://$PHABRICATOR_HOST/"
else
Expand Down Expand Up @@ -252,6 +253,9 @@ else
APHLICT_PROTOCOL="https"
APHLICT_PORT=443
fi
if [ "$PHABRICATOR_PORT" != "" ]; then
APHLICT_PORT=$PHABRICATOR_PORT
fi
sudo -u "$PHABRICATOR_VCS_USER" ./bin/config set notification.servers '[{"type": "client","host": "'$PHABRICATOR_HOST'","port": '$APHLICT_PORT',"protocol": "'$APHLICT_PROTOCOL'","path": "/ws/"},{"type": "admin","host": "127.0.0.1","port": 22281,"protocol": "http"}]'
unset APHLICT_PROTOCOL
unset APHLICT_PORT
Expand Down