${friendlyMsg}
+If this error keeps happening, please contact your administrator.
+ +{{ seen_host }}
+ {% else %}
+ {{ exception.message }}
+ {% endif %}
+ {% else %}
+ Your browser sent a request that the server could not understand.
+ {% endif %}
+{% endblock %}
+
+{% block admin_info %}
+ {% if untrusted_host %}
+ Untrusted host name.For security reasons (to prevent HTTP Host header attacks), Part-DB only responds to requests using host names that were explicitly marked as trusted, once more than one host name is used to access it (e.g. behind a reverse proxy).
+Try following things:
+TRUSTED_HOSTS environment variable to a regular expression matching all host names Part-DB should be reachable under. Note that the required quoting differs depending on where you set it:
+ .env.local file, the value must be wrapped in single quotes: TRUSTED_HOSTS='^({{ seen_host|replace({'.': '\\.'}) }})$' (if {{ seen_host }} is a host name you trust)docker-compose.yaml, the value must NOT be quoted: TRUSTED_HOSTS=^({{ seen_host|replace({'.': '\\.'}) }})$ (if {{ seen_host }} is a host name you trust).env.local file, the value must be wrapped in single quotes: TRUSTED_HOSTS='^(localhost|example\.com)$'docker-compose.yaml, the value must NOT be quoted: TRUSTED_HOSTS=^(localhost|example\.com)$TRUSTED_PROXIES is configured correctly, so the original host name is forwarded properly.{% trans %}system.trusted_hosts.unconfigured.message{% endtrans %} + {% trans %}system.trusted_hosts.unconfigured.suggestion{% endtrans %}
+{% trans %}system.trusted_hosts.unconfigured.env_example{% endtrans %}
+ TRUSTED_HOSTS='^({{ app.request.host|replace({'.': '\\.'}) }})$'
{% trans %}system.trusted_hosts.unconfigured.docker_example{% endtrans %}
+ TRUSTED_HOSTS=^({{ app.request.host|replace({'.': '\\.'}) }})$
{% trans %}log.collection_deleted.deleted{% endtrans %}: - {{ entity_type_label(entry.deletedElementClass) }} #{{ entry.deletedElementID }} + {{ type_label(entry.deletedElementClass) }} #{{ entry.deletedElementID }} {% if entry.oldName is not empty %} ({{ entry.oldName }}) {% endif %} @@ -12,4 +12,4 @@
{% trans %}log.collection_deleted.on_collection{% endtrans %}: {{ log_helper.translate_field(entry.collectionName) }} -
\ No newline at end of file + diff --git a/templates/log_system/details/log_details.html.twig b/templates/log_system/details/log_details.html.twig index aff127f4..2255dd97 100644 --- a/templates/log_system/details/log_details.html.twig +++ b/templates/log_system/details/log_details.html.twig @@ -58,7 +58,7 @@{% trans %}project.bom_import.validation.errors.description{% endtrans %}
{% trans %}project.bom_import.validation.warnings.description{% endtrans %}