{% extends "base.html" %} {% from "_macros.html" import th %} {% block title %}代理 Proxy · 爬虫控制台{% endblock %} {% block content %}

代理与出口 Proxy / Egress

{% if msg %}{% endif %} {% if err %}{% endif %} {% if not mgmt_ready %} {% endif %}

出口健康(每 数据源 × 代理) Egress health (per source × proxy)

加载中 loading…

冷表快照(近实时)Cold-table snapshot (near-realtime);热状态在 proxy-redis hot state lives in proxy-redis.

提供商 Providers

{{ th('提供商', 'Provider') }}{{ th('活跃', 'Active') }}{{ th('退役', 'Retired') }} {% for pr in providers %} {% else %} {% endfor %}
{{ pr.name }}{{ pr.active }}{{ pr.retired }}
没有提供商所有的代理行 No provider-owned proxy rows.

导入静态端点 Import static endpoints

地址 Addresses

{{ th('ID') }}{{ th('提供商', 'Provider') }}{{ th('端点', 'Endpoint') }}{{ th('凭证', 'Auth') }}{{ th('状态', 'Status') }} {% for p in proxies %} {% else %} {% endfor %}
{{ p.id }} {{ p.provider }} {{ p.scheme }}://{{ p.ip }}:{{ p.port }} {{ p.auth_masked }} {{ p.status }} {% if mgmt_ready %}
{% endif %}
没有代理行 No proxy rows.

每源限速 Per-source rate limits

{{ th('数据源', 'Source') }}{{ th('最大 QPS', 'Max QPS') }}{{ th('并发', 'Conc.') }} {% for r in rate_limits %} {% else %} {% endfor %}
{{ r.source }}{% if not r.throttled %} (关 off){% endif %}
未配置限速(默认 1 QPS)No rate limits configured (default 1 QPS applies).

强制熔断重置 Force circuit reset

强制 OPEN → HALF_OPEN,绕过冷却 Forces OPEN → HALF_OPEN bypassing cooldown;真实封禁会自动重新打开 a real ban re-opens automatically.

封禁规则(只读) Ban rules (read-only)

{{ th('数据源', 'Source') }}{{ th('类型', 'Type') }}{{ th('模式串', 'Pattern') }}{{ th('分类', 'Class') }}{{ th('启用', 'Enabled') }} {% for r in ban_rules %} {% else %} {% endfor %}
{{ r.source }}{{ r.rule_type }} {{ r.pattern }} {{ r.classification }} {{ '✓' if r.enabled else '✗' }}
没有注册封禁规则 No ban rules registered.
{% endblock %}