Adding caddy support

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
Ondrej Kubik 2017-11-04 19:23:28 +00:00
parent 3665a9131c
commit e077c85d00
6 changed files with 63 additions and 1 deletions

View file

@ -18,3 +18,12 @@ do
export $key=$value
fi
done
# if caddy is enabled, do update port settings based on caddy file
if [ "$CADDY_ENABLED" = "true" ]; then
echo "caddy is enabled, adjusting ports"
export CADDY_PORT=${PORT}
echo -e "CADDY_PORT=$CADDY_PORT"
export PORT=${CADDY_BIND_PORT}
echo -e "PORT=$PORT"
fi