From b46592f2cb0f74f6bdfc5703ee809dd3fa3dd06f Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Fri, 17 Sep 2021 22:35:04 +0200 Subject: [PATCH] Add reverse proxy configuration option --- docker-compose.yml | 9 +++++++++ start.sh | 2 ++ 2 files changed, 11 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index dc38151..6ef77d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,6 +52,15 @@ services: # SSMTP_AUTH_METHOD: # SSMTP_USE_STARTTLS: # 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 # data between PostgreSQL container updates; without diff --git a/start.sh b/start.sh index 92f6988..0530a8d 100755 --- a/start.sh +++ b/start.sh @@ -16,6 +16,8 @@ default_db = $DEFAULT_DB [mail] sendmail = /usr/sbin/ssmtp +[proxy] +ip=${PROXY_IP:-172.17.0.1/16} EOF export LSMB_CONFIG_FILE='/tmp/ledgersmb.conf' fi