{% extends "base.html" %} {% block title %}仪表盘 · frps-manager{% endblock %} {% block content %}

仪表盘

frps 版本
{% if info.error %} 离线 {% else %} {{ info.server.version }} {% endif %}
监听端口
{% if info.error %}-{% else %}{{ info.server.bindPort }}{% endif %}
在线 frpc 客户端
{% if info.error %}-{% else %}{{ info.clients.total }}{% endif %}
活跃代理
{% if info.error %}-{% else %}{{ info.proxies.total }}{% endif %}
租户 / 客户端 / 代理
{{ tenant_count }} / {{ client_count }} / {{ proxy_count }}
{% if info.error %}
无法连接 frps dashboard({{ info.error }})。请确认 frps 服务已启动且 dashboard 配置正确。
{% endif %} {% if user.role == 'admin' %}

服务控制

查看 frps.ini

Server Token(所有 frpc 共享)

frpc 配置 token = ... 字段用此值。轮换会让所有连接断掉。

{{ server_token }}
{% endif %}

在线 frpc 客户端

{% if info.error or not info.clients.get("items") %}

尚无客户端连接

{% else %} {% for c in info.clients.get("items", []) %} {% endfor %}
用户 (frpc [common] user)客户端 ID版本NAT连接数
{{ c.user or '(unnamed)' }} {{ c.clientID[:12] }}… {{ c.version }} {{ c.nat }} {{ c.conn_count }}
{% endif %}

活跃代理(来自 frps dashboard)

{% if info.error or not info.proxies.get("items") %}

尚无活跃代理

{% else %} {% for p in info.proxies.get("items", []) %} {% endfor %}
名称类型状态流量 in流量 out来自 frpc
{{ p.name }} {{ p.type }} {% if p.status.phase == 'online' %}在线 {% else %}离线{% endif %} {{ p.status.todayTrafficIn|fmt_bytes }} {{ p.status.todayTrafficOut|fmt_bytes }} {{ p.clientID[:12] or '-' }}…
{% endif %}
{% endblock %}