Skip to content

Commit fc86a16

Browse files
committed
Changed the liaison file URL to something that will be served via CDN (requires a symlink in production). This also changes the URL back to fully qualified instead of local, which means the test-crawler doesn't visit these links which aren't served by the django code, even if they resided in the datatracker url space before the move.
- Legacy-Id: 10164
1 parent 9c97d73 commit fc86a16

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

ietf/settings.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ def skip_unreadable_post(record):
391391
# Mailing list info URL for lists hosted on the IETF servers
392392
MAILING_LIST_INFO_URL = "https://www.ietf.org/mailman/listinfo/%(list_addr)s"
393393

394+
# Liaison Statement Tool settings (one is used in DOC_HREFS below)
395+
LIAISON_UNIVERSAL_FROM = 'Liaison Statement Management Tool <lsmt@' + IETF_DOMAIN + '>'
396+
LIAISON_ATTACH_PATH = '/a/www/ietf-datatracker/documents/LIAISON/' # should end in a slash
397+
LIAISON_ATTACH_URL = 'https://www.ietf.org/lib/dt/documents/LIAISON/' # should end in a slash, location should have a symlink to LIAISON_ATTACH_PATH
398+
394399
# Ideally, more of these would be local -- but since we don't support
395400
# versions right now, we'll point to external websites
396401
DOC_HREFS = {
@@ -399,8 +404,8 @@ def skip_unreadable_post(record):
399404
"slides": "https://www.ietf.org/slides/{doc.name}-{doc.rev}",
400405
"conflrev": "https://www.ietf.org/cr/{doc.name}-{doc.rev}.txt",
401406
"statchg": "https://www.ietf.org/sc/{doc.name}-{doc.rev}.txt",
402-
"liaison": "/documents/LIAISON/{doc.external_url}",
403-
"liai-att": "/documents/LIAISON/{doc.external_url}",
407+
"liaison": "%s{doc.external_url}" % LIAISON_ATTACH_URL,
408+
"liai-att": "%s{doc.external_url}" % LIAISON_ATTACH_URL,
404409
}
405410

406411
MEETING_DOC_HREFS = {
@@ -441,11 +446,6 @@ def skip_unreadable_post(record):
441446
RFC_EDITOR_QUEUE_URL = "https://www.rfc-editor.org/queue2.xml"
442447
RFC_EDITOR_INDEX_URL = "https://www.rfc-editor.org/rfc/rfc-index.xml"
443448

444-
# Liaison Statement Tool settings
445-
LIAISON_UNIVERSAL_FROM = 'Liaison Statement Management Tool <lsmt@' + IETF_DOMAIN + '>'
446-
LIAISON_ATTACH_PATH = '/a/www/ietf-datatracker/documents/LIAISON/'
447-
LIAISON_ATTACH_URL = '/documents/LIAISON/'
448-
449449
# NomCom Tool settings
450450
ROLODEX_URL = ""
451451
NOMCOM_PUBLIC_KEYS_DIR = '/a/www/nomcom/public_keys/'

0 commit comments

Comments
 (0)