Skip to content
Open
Changes from all commits
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
6 changes: 5 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export LOG_LEVEL="${LOG_LEVEL:-info}"
export TZ="${TZ:-UTC}"
export PHP_MEMORY_LIMIT="${PHP_MEMORY_LIMIT:-256M}"
export UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
export FORCE_HTTPS="${FORCE_HTTPS:-false}"

# Read Current LLC Version
# When version.json has CR/LF, it fx up, so have to add tr to remove the line endings.
Expand Down Expand Up @@ -51,6 +52,9 @@ echo "date.timezone = ${TZ}" >> /etc/php83/conf.d/40-custom.ini
# | -- MISC -- | #
# + ---------- + #

# Handle forced https or not with an environment var
sed -i "s/^FORCE_HTTPS.*/FORCE_HTTPS=${FORCE_HTTPS}/g" /htdocs/.env

# Apache gets grumpy about PID files pre-existing
rm -f /htdocs/httpd.pid
echo '| Updating Configuration: Complete |'
Expand All @@ -59,4 +63,4 @@ echo '| Running Apache |'
echo '+ ------------------------------------------------------------------ +'
echo

httpd -D FOREGROUND
httpd -D FOREGROUND