PromucFlow_constructor/deploy/docker/fs/opt/appsmith/run-caddy.sh
Goutham Pratapa bf05e0f185
chore: Switch to vanilla Caddy, when rate limiting is disabled (#33387)
Depends-on:
[33591](https://github.com/appsmithorg/appsmith/pull/33591/files)
Fixes: #31997

---------

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2024-05-24 13:11:56 +05:30

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"