{% extends "base.html" %} {% block title %}NEXXVU AI · NEXXVU{% endblock %} {% block head %}{% if admin and hermes and hermes.endpoint and not hermes.endpoint.approved and hermes.endpoint.destination.pending %}{% set dp = hermes.endpoint.destination %} {% if dp.pending.status != 'requested' %}{% elif not dp.observed %}{% endif %}{% endif %}{% endblock %} {% block content %}

Settings

NEXXVU AI {{ fresh_tag("ai:names") }}

Attack analysis by the AI Engine through this Portal's own AI Gateway. The analysis is a proposal: it is shown as text and never blocks anything by itself.

All settings
{% include "_settings_navigation.html" %}
{% if notice %}
{{ notice }}
{% endif %} {% if error %}{% endif %} {% if not admin %}

Only Portal administrators manage the AI Gateway settings.

{% else %}{% set h = hermes %}

Status {{ fresh_tag("hermes:settings") }}

{% if not h.endpoint %}

Not set up Enter the address, certificate fingerprint and token of this Portal's AI Gateway endpoint below.

{% elif h.working %}

Working {{ h.endpoint.address }}:{{ h.endpoint.port }} answered and reached the AI Engine.

{% else %}

Not working yet {{ h.last_check_detail or 'Approve the address, then test the connection.' }}

{% endif %}
Last test
{{ (h.last_check_at or 'never')|replace('T',' ')|replace('Z',' UTC') }}{% if h.last_check_at %} · {{ 'passed' if h.last_check_ok else 'failed' }}{% endif %}
{% if check %}
{{ check.detail }}
{% endif %} {% if h.endpoint and h.endpoint.approved %}
{% endif %}
{% if h.endpoint %}{% set d = h.endpoint.destination %}

The AI Gateway address

{{ h.endpoint.address }}:{{ h.endpoint.port }}

Pinned certificate (SHA-256)
{{ h.endpoint.fingerprint }}
{% if h.endpoint.approved %}

Approved This Portal may connect to this address only.

{% elif d.pending and d.pending.status == 'requested' and d.observed %}

Step 2 of 3 Approve this address so the Portal may connect to it. Then test the connection.

{% elif d.pending and d.pending.status == 'requested' %}

NEXXVU is reading the endpoint's certificate; this page refreshes by itself.

{% elif d.pending %}

Approved. The Portal applies the address and restarts once; this page continues by itself.

{% else %}{% if d.latest and d.latest.status == 'failed' %}

The endpoint could not be reached or its certificate did not match: {{ d.latest.failure }}. Check the address, port and fingerprint, then save again.

{% endif %}{% endif %}
{% endif %} {# R54.10 (Hani #1 2026-11-11): the limits on what this Portal sends, and the advice from the measured load. The advice only proposes; an administrator applies it with the sign-in password. #} {% if h.endpoint and limits %}{% set a = advice %}

Limits and advice {{ fresh_tag("hermes:limits") }}

{% if a %}

{{ {'lower': 'Lower the limits', 'raise': 'Raise the limits', 'keep': 'Keep the limits', 'measuring': 'Measuring'}[a.state] }} {% if a.state != 'measuring' and ': ' in a.reason %}{% set why = a.reason.split(': ', 1)[1] %}{{ why[0]|upper }}{{ why[1:] }}{% else %}{{ a.reason }}{% endif %}

{% if a.effect %}

Expected: {{ a.effect }}

{% endif %} {% if a.capacity %}{% endif %} {% else %}

The advice appears once the AI Gateway has answered the Portal's minute checks for a while.

{% endif %} {% set p = a.proposed if a and a.proposed else none %}
{% if p %}{% endif %} {% for key, label, unit, low, high in [('per_press', 'Addresses per Analyse', '', 1, 100), ('pause_seconds', 'Pause between analyses', 's', 0, 600), ('per_hour', 'Analyses an hour', '', 1, 1000)] %} {% if p %}{% endif %} {% endfor %}
LimitNowAdviceNew value
{{ label }}{{ limits[key] }}{{ ' ' ~ unit if unit }}{{ p[key] }}{{ ' ' ~ unit if unit }}
{% set au = auto_analysis %}{% if au and au.available %}
Every new high-risk address in Security events goes to the AI, one at a time, after your own requests.
{% endif %}

{% if p %}The new values are filled in with the advice; change them if you prefer. {% endif %}A changed limit counts for the next analysis.{% if limits.changed_at %} Last changed {{ limits.changed_at|replace('T', ' ')|replace('Z', ' UTC') }} by {{ limits.changed_by }}.{% endif %}

{% endif %}

Endpoint

The installer on the AI Gateway VM printed the fingerprint (CERT-SHA256=…) and wrote the token to /etc/nexxvu-attack-analysis/portal-token (root only). The Portal checks the certificate against this fingerprint before it sends the token.

{% endif %}
{% endblock %}