From 029c94b80de042f21354e33309f46e2b2dbe12fa Mon Sep 17 00:00:00 2001 From: Kevin Cantwell Date: Fri, 10 Aug 2018 11:00:19 +1200 Subject: [PATCH] default whitelist to web,www --- README.md | 2 +- bin/compile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e3847f4..ba2aac6 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/bin/compile b/bin/compile index b1b108e..ac02edb 100755 --- a/bin/compile +++ b/bin/compile @@ -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 "" @@ -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