fix: Update idnits service URL ()

This change introduces a new configuration option: `IDNITS_SERVICE_URL`
to configure idnits service URL.
This commit is contained in:
Kesara Rathnayake 2022-08-19 05:25:44 +12:00 committed by GitHub
parent c0f1fd2395
commit 1869d375c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -542,6 +542,7 @@ INTERNAL_IPS = (
IDTRACKER_BASE_URL = "https://datatracker.ietf.org"
RFCDIFF_BASE_URL = "https://www.ietf.org/rfcdiff"
IDNITS_BASE_URL = "https://author-tools.ietf.org/api/idnits"
IDNITS_SERVICE_URL = "https://author-tools.ietf.org/idnits"
# Content security policy configuration (django-csp)
CSP_DEFAULT_SRC = ("'self'", "'unsafe-inline'", f"data: {IDTRACKER_BASE_URL} https://www.ietf.org/ https://analytics.ietf.org/ https://fonts.googleapis.com/")

View file

@ -51,7 +51,7 @@
<p>
Before you submit your I-D, it is recommended that you check it for nits
using the
<a href="{{ settings.IDNITS_BASE_URL }}">idnits tool</a>.
<a href="{{ settings.IDNITS_SERVICE_URL }}">idnits tool</a>.
</p>
<table class="table table-sm table-striped">
<tbody>
@ -216,4 +216,4 @@
</tbody>
</table>
{% include "submit/problem-reports-footer.html" %}
{% endblock %}
{% endblock %}

View file

@ -23,7 +23,7 @@
<hr>
Before you submit your I-D, it is recommended that you check it for nits
using the
<a href="{{ settings.IDNITS_BASE_URL }}">idnits</a>
<a href="{{ settings.IDNITS_SERVICE_URL }}">idnits</a>
tool, and fix them.
</div>
<form method="post" enctype="multipart/form-data" class="my-3">
@ -80,4 +80,4 @@
$("#other-formats").collapse('show')
});
</script>
{% endblock %}
{% endblock %}