From e077c85d003fb3cfd837ad8064ade767fa8fe04f Mon Sep 17 00:00:00 2001 From: Ondrej Kubik Date: Sat, 4 Nov 2017 19:23:28 +0000 Subject: Adding caddy support Signed-off-by: Ondrej Kubik --- snap-src/bin/wekan-read-settings | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'snap-src/bin/wekan-read-settings') diff --git a/snap-src/bin/wekan-read-settings b/snap-src/bin/wekan-read-settings index a924eaea..f216c2a8 100755 --- a/snap-src/bin/wekan-read-settings +++ b/snap-src/bin/wekan-read-settings @@ -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 -- cgit v1.2.3-1-g7c22