Depends-on: [33591](https://github.com/appsmithorg/appsmith/pull/33591/files) Fixes: #31997 --------- Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
23 lines
592 B
Bash
Executable File
23 lines
592 B
Bash
Executable File
#!/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"
|
|
|