fix(smtp): inject SMTP password secret via entrypoint, not *_FILE
The official discourse/discourse image has no *_FILE support, so DISCOURSE_SMTP_PASSWORD_FILE was silently ignored and SMTP auth booted without a password. Read the secret in the wrapper entrypoint and export DISCOURSE_SMTP_PASSWORD, mirroring the DB password handling. Bump APP_ENTRYPOINT_VERSION so the new entrypoint config redeploys. Add release notes for the bitnami->official SMTP env var renames. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Co-op Cloud wrapper around the official image's /sbin/boot.
|
||||
# discourse/discourse reads DISCOURSE_DB_PASSWORD from the process env (pups/Ruby;
|
||||
# it has no *_FILE support), so inject it from the docker secret before booting.
|
||||
# discourse/discourse reads passwords from the process env (pups/Ruby; it has no
|
||||
# *_FILE support), so inject them from the docker secrets before booting.
|
||||
set -e
|
||||
|
||||
if [ -f /run/secrets/db_password ]; then
|
||||
export DISCOURSE_DB_PASSWORD="$(cat /run/secrets/db_password)"
|
||||
fi
|
||||
|
||||
if [ -f /run/secrets/smtp_password ]; then
|
||||
export DISCOURSE_SMTP_PASSWORD="$(cat /run/secrets/smtp_password)"
|
||||
fi
|
||||
|
||||
exec /sbin/boot
|
||||
|
||||
Reference in New Issue
Block a user