From b50e60b05fb5e3e58040898ef64b8b65ad02ee63 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Tue, 23 Apr 2024 17:03:22 -0300 Subject: [PATCH] ci: default to static.ietf.org in helm chart --- helm/settings_local.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/settings_local.py b/helm/settings_local.py index 2840ca6b9..53609afa7 100644 --- a/helm/settings_local.py +++ b/helm/settings_local.py @@ -193,10 +193,10 @@ DRAFT_VIRTUAL_PATH = "/a/postfix/draft-virtual" GROUP_ALIASES_PATH = "/a/postfix/group-aliases" GROUP_VIRTUAL_PATH = "/a/postfix/group-virtual" -# Repoint STATIC_URL - hack to let staging access statics without hosting them itself -_STATIC_URL = os.environ.get("DATATRACKER_STATIC_URL", None) -if _STATIC_URL is not None: - STATIC_URL = _STATIC_URL +STATIC_URL = os.environ.get("DATATRACKER_STATIC_URL", None) +if STATIC_URL is None: + from ietf import __version__ + STATIC_URL = f"https://static.ietf.org/dt/{__version__}/" # Set these to the same as "production" in settings.py, whether production mode or not MEDIA_ROOT = "/a/www/www6s/lib/dt/media/"