diff --git a/docker/configs/settings_local.py b/docker/configs/settings_local.py index 4866a6061..fc3052ff9 100644 --- a/docker/configs/settings_local.py +++ b/docker/configs/settings_local.py @@ -57,3 +57,4 @@ SLIDE_STAGING_PATH = 'test/staging/' DE_GFM_BINARY = '/usr/local/bin/de-gfm' STATIC_IETF_ORG = "/_static" +STATIC_IETF_ORG_INTERNAL = "http://localhost:80" diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 85b01c3d0..b570391f9 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -627,7 +627,7 @@ class DocumentInfo(models.Model): stylesheets.append(finders.find("ietf/css/document_html_txt.css")) else: text = self.htmlized() - stylesheets.append(f'{settings.STATIC_IETF_ORG}/fonts/noto-sans-mono/import.css') + stylesheets.append(f'{settings.STATIC_IETF_ORG_INTERNAL}/fonts/noto-sans-mono/import.css') cache = caches["pdfized"] cache_key = name.split(".")[0] diff --git a/ietf/settings.py b/ietf/settings.py index 7d07f1220..bf0c6b1f9 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -178,7 +178,10 @@ STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) +# Client-side static.ietf.org URL STATIC_IETF_ORG = "https://static.ietf.org" +# Server-side static.ietf.org URL (used in pdfized) +STATIC_IETF_ORG_INTERNAL = STATIC_IETF_ORG WSGI_APPLICATION = "ietf.wsgi.application"