Skip to content

Commit b50e60b

Browse files
jennifer-richardsNGPixel
authored andcommitted
ci: default to static.ietf.org in helm chart
1 parent 26f2306 commit b50e60b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

helm/settings_local.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ def _multiline_to_list(s):
193193
GROUP_ALIASES_PATH = "/a/postfix/group-aliases"
194194
GROUP_VIRTUAL_PATH = "/a/postfix/group-virtual"
195195

196-
# Repoint STATIC_URL - hack to let staging access statics without hosting them itself
197-
_STATIC_URL = os.environ.get("DATATRACKER_STATIC_URL", None)
198-
if _STATIC_URL is not None:
199-
STATIC_URL = _STATIC_URL
196+
STATIC_URL = os.environ.get("DATATRACKER_STATIC_URL", None)
197+
if STATIC_URL is None:
198+
from ietf import __version__
199+
STATIC_URL = f"https://static.ietf.org/dt/{__version__}/"
200200

201201
# Set these to the same as "production" in settings.py, whether production mode or not
202202
MEDIA_ROOT = "/a/www/www6s/lib/dt/media/"

0 commit comments

Comments
 (0)