Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Commit

Permalink
fix special case for proxy-prefix. thanks to @RichardN
Browse files Browse the repository at this point in the history
  • Loading branch information
jodok committed Jul 14, 2018
1 parent 46213b2 commit 1d9dc9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if [ "$1" = 'oauth2_proxy' ]; then
authenticated-emails-file
azure-tenant
basic-auth-password
bitbucket-team
client-id
client-secret
config
Expand Down Expand Up @@ -91,7 +92,13 @@ if [ "$1" = 'oauth2_proxy' ]; then
else
# unfortunately ${!var} is only available in bash and not sh
# that's why the alpine container installs bash as runtime dependency
echo "${var} = \"${!env_var}\"" >> /conf/oauth2_proxy.cfg
#
# one variable uses a dash rather than underscore...
if [ "$var" == "proxy_prefix" ]; then
echo "proxy-prefix = \"${!env_var}\"" >> /conf/oauth2_proxy.cfg
else
echo "${var} = \"${!env_var}\"" >> /conf/oauth2_proxy.cfg
fi
fi
fi
done
Expand Down

0 comments on commit 1d9dc9b

Please sign in to comment.