mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
docker: Add support for SMTP password file (#240)
Similar to LLDAP_JWT_SECRET and LLDAP_LDAP_USER_PASS, add option to use an ENV variable to specify the file of the SMTP password: LLDAP_SMTP_OPTIONS__PASSWORD_FILE
This commit is contained in:
parent
479d1e7635
commit
2c2696a8c3
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
for SECRET in LLDAP_JWT_SECRET LLDAP_LDAP_USER_PASS; do
|
for SECRET in LLDAP_JWT_SECRET LLDAP_LDAP_USER_PASS LLDAP_SMTP_OPTIONS__PASSWORD; do
|
||||||
FILE_VAR="${SECRET}_FILE"
|
FILE_VAR="${SECRET}_FILE"
|
||||||
SECRET_FILE="${!FILE_VAR:-}"
|
SECRET_FILE="${!FILE_VAR:-}"
|
||||||
if [[ -n "$SECRET_FILE" ]]; then
|
if [[ -n "$SECRET_FILE" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user