{% extends "base.html" %} {% block title %}Settings{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
| Hostname | IP Address | Role | Last Seen | Status | {% if settings.node_role == 'main' %}{% endif %} |
|---|---|---|---|---|---|
| {{ node.hostname }} | {{ node.ip_address }} | {{ node.node_role }} | {% if node.last_seen %} {{ node.last_seen.strftime('%Y-%m-%d %H:%M') }} {% else %}-{% endif %} | {% if age_secs >= 0 and age_secs < sync_secs * 2 %} OK {% elif age_secs >= 0 and age_secs < sync_secs * 6 %} Late {% elif age_secs >= 0 %} Down {% else %} Unknown {% endif %} | {% if settings.node_role == 'main' %}{% if node.node_role == 'secondary' %} {% endif %} | {% endif %}
No secondary nodes registered yet.
{% endif %} {% if settings.node_role == 'main' %} {% if sql_preview %}{{ sql_preview }}
The API token is used to authenticate requests to the SpamGate REST API. Keep it secret - treat it like a password.
{% if settings is defined and settings.api_token %}API token is set but not displayed for security. Use Regenerate to issue a new token.
{% endif %}