diff --git a/web/README.md b/web/README.md index 32d1a0f..08f0af7 100644 --- a/web/README.md +++ b/web/README.md @@ -58,6 +58,11 @@ change them unless you know what you want. configuration. This is a separate configuration from`SERVE_FROM_DOMAIN` as latter is used for other purposes too. +- `POSTORIUS_TEMPLATE_BASE_URL`: The base url at which the `mailman-web` + container can be reached from `mailman-core` container. This is set to + `http://mailman-web:8000` by default so that Core can fetch templates from + Core. + Running ======= diff --git a/web/mailman-web/settings.py b/web/mailman-web/settings.py index d283637..d7cc6e3 100644 --- a/web/mailman-web/settings.py +++ b/web/mailman-web/settings.py @@ -403,6 +403,8 @@ Q_CLUSTER = { 'orm': 'default', } +POSTORIUS_TEMPLATE_BASE_URL = os.environ.get('POSTORIUS_TEMPLATE_BASE_URL', 'http://mailman-web:8000') + try: from settings_local import * except ImportError: