From 9f8fd65bb58145ffe864bd18988c0ab3d3091449 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 25 Jul 2018 23:01:08 -0700 Subject: [PATCH] Add new settings for Templates. --- web/README.md | 5 +++++ web/mailman-web/settings.py | 2 ++ 2 files changed, 7 insertions(+) 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: