PromucFlow_constructor/deploy/docker/fs/opt/appsmith/run-caddy.sh

23 lines
592 B
Bash
Raw Normal View History

#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
if [[ -z "${APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX-}" ]]; then
# For backwards compatibility, if this is not set to anything, we default to no sandbox for iframe widgets.
export APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX="true"
fi
node caddy-reconfigure.mjs
pushd "$(dirname "$WWW_PATH/index.html")"
gzip --keep --force "$(basename "$WWW_PATH/index.html")"
popd
# Caddy may already be running for the loading page.
"$_APPSMITH_CADDY" stop --config "$TMP/Caddyfile" || true
exec "$_APPSMITH_CADDY" run --config "$TMP/Caddyfile"