{% extends 'base.html' %} {% block title %}域名详情 - {{ domain.name }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

域名:{{ domain.name }}

概览
当前套餐:{% if domain.current_plan %}{{ domain.current_plan.name }}{% else %}-{% endif %}
状态:{{ domain.get_status_display }}
本月流量:{{ used_gb }} GB / {{ total_quota_gb }} GB
{{ progress_pct }}%
统计(近30天)
近 7 天合计
{{ last7_total_gb|default:0 }} GB
均值:{{ last7_avg_gb|default:0 }} GB/日
近 30 天合计
{{ last30_total_gb|default:0 }} GB
均值:{{ last30_avg_gb|default:0 }} GB/日
峰值日(流量)
{% if peak_volume_day %} {{ peak_volume_day.day }} / {{ peak_volume_day.gb }} GB {% else %} 无数据 {% endif %}
峰值日(带宽)
{% if peak_bandwidth_day %} {{ peak_bandwidth_day.day }} / {{ peak_bandwidth_day.mbps }} Mbps {% else %} 无数据 {% endif %}
请求数 / 状态码分布
{% if requests_24h_total %} 近 24 小时请求数:{{ requests_24h_total }} {% else %} 请求数不可用(请在设置启用访问日志) {% endif %}
{% if status_bins %}
2xx {{ status_bins.2xx }} 3xx {{ status_bins.3xx }} 4xx {{ status_bins.4xx }} 5xx {{ status_bins.5xx }}
{% if status_top %}
Top 状态码: {% for code,count in status_top %} {{ code }} {{ count }} {% endfor %}
{% endif %} {% else %}
状态码分布不可用。
{% endif %}
{% if traffic_rows %}
{% for r in traffic_rows %} {% endfor %}
日期 流量(GB) 峰值带宽(Mbps)
{{ r.day }} {{ r.gb }} {% if r.peak_mbps %}{{ r.peak_mbps }}{% else %}-{% endif %}
{% else %}
暂无统计数据。
{% endif %}
说明:统计数据来源于 GoEdge 每日拉取结果,仅供参考。
接入信息(CNAME)
{% if cname_results %} {% for r in cname_results %} {% endfor %} {% else %} {% for host, target in domain.cname_targets.items %} {% endfor %} {% endif %}
主机名 期望 CNAME 目标 实际解析 状态
{{ r.hostname }} {{ r.expected }} {% if r.actual %} {% for a in r.actual %}{{ a }}{% if not forloop.last %}, {% endif %}{% endfor %} {% else %} (无) {% endif %} {% if r.ok %} 正确 {% else %} 未匹配 {% if r.error %}
{{ r.error }}
{% endif %} {% endif %}
{{ host }} {{ target }} (未检测) 未知
{% csrf_token %}
GoEdge 同步状态
{% if goedge_status and not goedge_status.error %}
Web ID
{% if goedge_status.webId %}{{ goedge_status.webId }}{% else %}未获取{% endif %}
访问日志
{% if goedge_status.accessLog.isOn %} 已启用 {% elif goedge_status.accessLog.isOn is not none %} 未启用 {% else %} 未知 {% endif %} {% if goedge_status.accessLog.policyId %}
PolicyId: {{ goedge_status.accessLog.policyId }}
{% endif %}
WebSocket
{% if goedge_status.websocket.isOn %} 已启用 {% elif goedge_status.websocket.isOn is not none %} 未启用 {% else %} 未知 {% endif %}
WAF
{% if goedge_status.firewall.isOn %} 已启用 {% elif goedge_status.firewall.isOn is not none %} 未启用 {% else %} 未知 {% endif %} {% if goedge_status.firewall.policyId %}
PolicyId: {{ goedge_status.firewall.policyId }}
{% endif %}
SSL策略
{% if goedge_status.sslPolicy.id %}{{ goedge_status.sslPolicy.id }}{% else %}未获取{% endif %}
HTTP/3
{% if goedge_status.sslPolicy.http3Enabled %} 已启用 {% elif goedge_status.sslPolicy.http3Enabled is not none %} 未启用 {% else %} 未知 {% endif %}
{% elif goedge_status and goedge_status.error %}
状态查询失败:{{ goedge_status.error }}
{% else %}
当前域名尚未关联 GoEdge 服务或无可查询信息。
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}