ci: default to static.ietf.org in helm chart

This commit is contained in:
Jennifer Richards 2024-04-23 17:03:22 -03:00 committed by Nicolas Giard
parent 26f2306316
commit b50e60b05f

View file

@ -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/"