Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ if [ "${BEHIND_PROXY}" == "true" ]; then
export PARSED_APP_URL=":80"
export PARSED_AUTO_HTTPS="auto_https off"
export ASSET_URL=${APP_URL}

# Write ASSET_URL to .env so PHP-FPM workers can read it (clear_env = yes by default)
if grep -q "^ASSET_URL=" /pelican-data/.env; then
sed -i "s|^ASSET_URL=.*|ASSET_URL=${APP_URL}|" /pelican-data/.env
else
Comment thread
lancepioch marked this conversation as resolved.
Outdated
echo "ASSET_URL=${APP_URL}" >> /pelican-data/.env
fi
Comment thread
lancepioch marked this conversation as resolved.
fi

# disable caddy if SKIP_CADDY is set
Expand Down