Skip to content

Commit

Permalink
default whitelist to web,www
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-cantwell committed Aug 9, 2018
1 parent 901d7b5 commit 029c94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For more information on setting up backplane see `backplane help`.
### Whitelist process types

Use enviroment variable `BACKPLANE_PROCESS_ALLOW` to whitelist process types
which serve http traffic. If left unset, the process type 'web' will be whitelisted
which serve http traffic. If left unset, the process type 'web' and 'www' will be whitelisted
by default.

Example:
Expand Down
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ -f $envDir/BACKPLANE_PROCESS_ALLOW ]; then
whitelist=$(cat $envDir/BACKPLANE_PROCESS_ALLOW)
fi
whitelist=${whitelist:-web}
echo "-----> Backplane Agent whitelists the 'web' process type by default."
echo "-----> Backplane Agent whitelists the 'web' and 'www' process types by default."
echo " Use enviroment variable BACKPLANE_PROCESS_ALLOW to whitelist alternate process types."
echo " Example: BACKPLANE_PROCESS_ALLOW=internal,external"
echo ""
Expand All @@ -35,7 +35,7 @@ echo "-----> Writing .profile.d/backplane.sh"
cat <<-EOF > $buildDir/.profile.d/backplane.sh
allowed="no"
CURRENT_PROCESS_TYPE=\${DYNO%.*}
IFS=", " read -r -a array <<< "\${BACKPLANE_PROCESS_ALLOW:-web}"
IFS=", " read -r -a array <<< "\${BACKPLANE_PROCESS_ALLOW:-web,www}"
for element in "\${array[@]}"
do
if [ "\$element" == "\$CURRENT_PROCESS_TYPE" ]; then
Expand Down

0 comments on commit 029c94b

Please sign in to comment.