diff options
author | Ondrej Kubik <ondrej.kubik@canonical.com> | 2017-11-04 19:23:28 +0000 |
---|---|---|
committer | Ondrej Kubik <ondrej.kubik@canonical.com> | 2018-02-21 22:29:23 +0000 |
commit | e077c85d003fb3cfd837ad8064ade767fa8fe04f (patch) | |
tree | a2440082e3c4f8917095758dead9a577b3efa4b5 /snap-src/bin/wekan-read-settings | |
parent | 3665a9131c4f0bac07727a5f908905e9a6348535 (diff) | |
download | wekan-e077c85d003fb3cfd837ad8064ade767fa8fe04f.tar.gz wekan-e077c85d003fb3cfd837ad8064ade767fa8fe04f.tar.bz2 wekan-e077c85d003fb3cfd837ad8064ade767fa8fe04f.zip |
Adding caddy support
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
Diffstat (limited to 'snap-src/bin/wekan-read-settings')
-rwxr-xr-x | snap-src/bin/wekan-read-settings | 9 |
1 files changed, 9 insertions, 0 deletions
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 |