Add reverse proxy configuration option

This commit is contained in:
Erik Huelsmann 2021-09-17 22:35:04 +02:00
parent 5717494020
commit b46592f2cb
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,15 @@ services:
# SSMTP_AUTH_METHOD: # SSMTP_AUTH_METHOD:
# SSMTP_USE_STARTTLS: # SSMTP_USE_STARTTLS:
# SSMTP_FROMLINE_OVERRIDE: # SSMTP_FROMLINE_OVERRIDE:
#
#
# The PROXY_IP environment variable lets you set the IP address
# (range) of the reverse proxy used for TLS termination, which forwards
# its requests to this container. When this reverse proxy runs on the
# Docker host, the default below applies. In case the reverse proxy is
# hosted in a separate container, this setting needs to be adjusted.
#
# PROXY_IP: 172.17.0.1/12
# having the dbdata volume is required to persist our # having the dbdata volume is required to persist our
# data between PostgreSQL container updates; without # data between PostgreSQL container updates; without

View File

@ -16,6 +16,8 @@ default_db = $DEFAULT_DB
[mail] [mail]
sendmail = /usr/sbin/ssmtp sendmail = /usr/sbin/ssmtp
[proxy]
ip=${PROXY_IP:-172.17.0.1/16}
EOF EOF
export LSMB_CONFIG_FILE='/tmp/ledgersmb.conf' export LSMB_CONFIG_FILE='/tmp/ledgersmb.conf'
fi fi