mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-04 08:47:11 -04:00
Fix (START)TLS settings from container environment variables
Some checks failed
Docker Image cleanup / cleanup (push) Has been cancelled
Some checks failed
Docker Image cleanup / cleanup (push) Has been cancelled
This commit is contained in:
parent
20bf57b4f8
commit
c2475afab5
9
start.sh
9
start.sh
@ -68,6 +68,13 @@ if [[ -n "$LSMB_HAVE_DEPRECATED" ]]; then
|
||||
fi
|
||||
|
||||
if [[ ! -f ./local/conf/ledgersmb.yaml ]]; then
|
||||
if [[ "x$LSMB_MAIL_SMTPTLS" == "xyes" ]]; then
|
||||
tls_mode=starttls
|
||||
elif [[ "x$LSMB_MAIL_SMTPTLS" == "xraw" ]]; then
|
||||
tls_mode=ssl
|
||||
else
|
||||
tls_mode=none
|
||||
fi
|
||||
cat <<EOF >./local/conf/ledgersmb.yaml
|
||||
paths:
|
||||
\$class: Beam::Wire
|
||||
@ -84,7 +91,7 @@ db:
|
||||
mail:
|
||||
transport:
|
||||
\$class: Email::Sender::Transport::SMTP
|
||||
tls: $LSMB_MAIL_SMTPTLS
|
||||
ssl: $tls_mode
|
||||
|
||||
miscellaneous:
|
||||
\$class: Beam::Wire
|
||||
|
Loading…
Reference in New Issue
Block a user