{% extends "base.html" %} {% load i18n %} {% block content %} {% if not cluster_settings.enabled %}
{% trans 'The cluster is disabled. Workers are refused and App Gateway applications are only published by this primary server.' %} {% trans 'Cluster Settings' %}
{% endif %} {% if stopped_instances %}
{% trans 'These WireGuard instances are offline because their worker is disabled:' %} {% for instance in stopped_instances %}wg{{ instance.instance_id }} ({{ instance.worker }}){% if not forloop.last %}, {% endif %}{% endfor %}. {% trans 'Enable the worker or move the instances to another server.' %}
{% endif %} {% if not cache_enabled %}
{% trans 'The cluster requires the WireGuard status cache. Enable WIREGUARD_STATUS_CACHE_ENABLED in the .env file.' %}
{% endif %}
{% trans 'Workers online' %} {{ summary.online }} / {{ summary.enabled }}
{% trans 'Synchronized' %} {{ summary.synced }} / {{ summary.enabled }}
{% trans 'Need attention' %} {{ summary.attention }}
{% trans 'Primary WireGuard' %} {% if cluster_settings.primary_enable_wireguard %}{% trans 'Enabled' %}{% else %}{% trans 'Disabled' %}{% endif %} {% if distributed %} {% for instance in primary_instances %}wg{{ instance.instance_id }}{% if not forloop.last %}, {% endif %}{% empty %}{% trans 'No WireGuard instances' %}{% endfor %} {% endif %}
{% if workers %}
{% for worker in workers %} {% endfor %}
{% trans 'Worker' %} {% trans 'Status' %} {% trans 'Synchronization' %} {% trans 'Services' %} {% trans 'Version' %} {% trans 'Actions' %}
{{ worker.name }}
{{ worker.hostname|default:worker.ip_address|default:'-' }} {% if worker.ip_lock %}{% endif %} {% if worker.city or worker.country %} · {{ worker.city|default:'' }}{% if worker.city and worker.country %}, {% endif %}{{ worker.country|default:'' }}{% endif %} {% if distributed %}
{% for instance in worker.hosted_instances %} wg{{ instance.instance_id }}{% if instance.name %} · {{ instance.name }}{% endif %} {% empty %} {% trans 'No WireGuard instances' %} {% endfor %} {% endif %}
{% if not worker.enabled %} {% trans 'Disabled' %} {% elif worker.error_status %} {% trans 'Refused' %} {% elif worker.is_online %} {% trans 'Online' %} {% else %} {% trans 'Offline' %} {% endif %}
{% if worker.status %}{{ worker.status.last_seen|date:"SHORT_DATETIME_FORMAT" }}{% else %}{% trans 'Never' %}{% endif %}
{% if not worker.enabled %} - {% elif not worker.operational %} {% trans 'Unknown' %} {% elif worker.sync_state.state == 'synced' %} {% trans 'Synchronized' %} {% elif worker.sync_state.state == 'error' %} {% trans 'Error' %}
{{ worker.unsynced_sections|join:', ' }} {% else %} {% trans 'Pending' %}
{{ worker.unsynced_sections|join:', ' }} {% endif %}
{% for service, state in worker.services %} {% if worker.operational %} {{ service }} {% else %} {{ service }} {% endif %} {% empty %} - {% endfor %} {% if worker.operational and worker.warnings.certificate_issues %}
{% trans 'Certificates unavailable or expiring soon' %} {% endif %}
{% if worker.status %} v{{ worker.status.worker_version }} {% else %} - {% endif %}
{% else %}

{% trans 'No workers configured' %}

{% trans 'Add Worker' %}
{% endif %}

{% trans 'Diagnostics' %}

{% trans 'Cluster Mode' %}
{{ cluster_settings.get_cluster_mode_display }}
{% trans 'Worker Display' %}
{{ cluster_settings.get_worker_display_display }}
{% trans 'Current worker version' %}
v{{ current_worker_version }}
{% trans 'Stats Cache Refresh Interval' %}
{{ cache_refresh_interval }}s
{% trans 'Cache Web Load Previous Count' %}
{{ cache_web_load_previous_count }}
{% trans 'Master Cache Processing Time' %}
{{ master_cache_times|default:'-' }}
{% trans 'Cluster Cache Processing Time' %}
{{ cluster_cache_times|default:'-' }}
{% endblock %} {% block custom_page_scripts %} {% endblock %}