{% extends "admin/layout.html" %} {% block admin_title %}{{ panel.name }}{% endblock %} {% block admin_content %}

{{ panel.name }}

Назад
{% if flash %} {% if flash.startswith('error:') %}
{{ flash[6:] }}
{% elif flash == 'client_created' %}
Клиент создан в 3x-ui
{% elif flash == 'inbounds_synced' %}
Inbound’ы синхронизированы с 3x-ui
{% elif flash == 'inbounds_saved' %}
Доступные пользователям inbound’ы сохранены
{% elif flash == 'ok' %}
Данные обновлены
{% endif %} {% endif %} {% if error %}
{{ error }}
{% endif %} {% if created %}
Новый клиент ({{ created.protocol }})

{{ created.email }} → inbound #{{ created.inbound_id }}

{% if created.protocol == 'vless' %} {% if created.uuid %}

UUID: {{ created.uuid }}{% if created.flow %} · flow: {{ created.flow }}{% endif %}

{% endif %} {% if created.expiry_days %}

Срок: {{ created.expiry_days }} дн. {% if created.start_after_first_use %}· старт после первого использования{% else %}· с момента создания{% endif %}

{% endif %} {% if created.links %} {% for link in created.links %}
{{ link }}
{% endfor %} {% else %}

Ссылка vless:// появится в 3x-ui (Clients → Copy URL).

{% endif %} {% elif created.protocol == 'wireguard' %} {% if created.expiry_days %}

Срок: {{ created.expiry_days }} дн. {% if created.start_after_first_use %}· старт после первого использования{% else %}· с момента создания{% endif %}

{% endif %}

Ключи клиента (конфиг соберите в 3x-ui или ниже):

PrivateKey = {{ created.privateKey }}
PublicKey = {{ created.publicKey }}
{% if created.allowedIPs %}AllowedIPs = {{ created.allowedIPs | join(', ') }}
{% endif %}{% if created.inbound %}Endpoint port = {{ created.inbound.port }}{% endif %}
{% endif %}
{% endif %}
Создано через сайт только клиенты, которых вы создали в этой панели
{% for c in site_clients %} {% else %} {% endfor %}
Email Протокол Inbound Срок Лимиты Ссылка / ключи Когда
{{ c.email }} {% if c.comment %}
{{ c.comment }}
{% endif %}
{{ c.protocol }} #{{ c.inbound_id }} {% if c.inbound_remark %}{{ c.inbound_remark }}{% endif %} {% if c.expiry_days and c.expiry_days > 0 %} {{ c.expiry_days }} дн. {% if c.start_after_first_use %}
после 1-го входа{% endif %} {% else %} без срока {% endif %}
{{ c.total_gb or 0 }} GB {% if c.limit_ip %}
IP ≤ {{ c.limit_ip }}{% endif %}
{% if c.link %} {% elif c.private_key %}
priv: {{ c.private_key[:24] }}…
{% else %}—{% endif %}
{{ c.created_at }}
Пока никого не создавали через сайт
{% if data %}
Все inbound’ы
{{ data.inbounds|length }}
VLESS
{{ data.vless_inbounds|length }}
WireGuard
{{ data.wireguard_inbounds|length }}
Создать VLESS клиента
Создать WireGuard клиента
{% endif %}
Inbound’ы для пользователей отметьте, какие будут доступны при создании клиентов
{% for ib in panel_inbounds %} {% else %} {% endfor %}
Для пользователей ID Remark Protocol Port В 3x-ui
{{ ib.inbound_id }} {{ ib.remark or '—' }} {{ ib.protocol }} {{ ib.port or '—' }} {% if ib.enable %}on{% else %}off{% endif %}
Список пуст — нажмите «Синхронизировать inbound’ы»
{% if data %}
Все inbound’ы из API (VLESS / WireGuard)
{% for ib in data.available_inbounds %} {% else %} {% endfor %}
ID Remark Protocol Port Enable
{{ ib.id }} {{ ib.remark or '—' }} {{ ib.protocol }} {{ ib.port }} {% if ib.enable is not defined or ib.enable %}on{% else %}off{% endif %}
Нет VLESS/WireGuard inbound’ов
Все клиенты 3x-ui из API панели (включая созданных не через сайт)
{% for c in data.clients %} {% else %} {% endfor %}
Email Enable Inbounds Traffic
{{ c.email }} {% if c.enable %}on{% else %}off{% endif %} {{ c.inboundIds or c.inbound_ids or '—' }} {% if c.traffic %} ↑ {{ c.traffic.up or 0 }} / ↓ {{ c.traffic.down or 0 }} {% else %}—{% endif %}
Нет клиентов
{% endif %} {% endblock %}