{% extends "base.html" %} {% block title %}{{ t('系统配置') }} · {{ product_name }}{% endblock %} {% block content %} {% if errors %} {% endif %}
{% if active_group %}

{{ t(active_group.title) }}

{{ t(active_group.description) }}

{% for subgroup in active_group.subgroups %} {% if subgroup.title %}

{{ t(subgroup.title) }}

{% endif %}
{% for row in subgroup.rows %}
{{ t(row.effect) }}

{{ t('默认') }} {{ row.default }},{{ t('范围') }} {{ row.low }}–{{ row.high }}。{{ t(row.help) }}

{% if row.error %} {% endif %}
{% if row.key == "backup_keep_count" and not sqlite_config %}

{{ t('仅在 SQLite 配置库上生效,当前配置库不会使用这项。') }}

{% else %}
{{ t(row.unit) }}
{{ t('恢复本项默认') }} {% endif %}
{% endfor %}
{% endfor %}
{{ t('保存本组会写入审计;切换分组前请先保存。') }}
{% elif active_section == "security" %}

{{ t('安全边界') }}

{{ t('这些规则是硬边界,不通过系统配置放宽。') }}

{{ t('只读白名单、危险命令、目标范围、密钥与 TLS 校验不受系统配置影响。') }}

{{ t('本页只调整默认值和运行节奏,不改变“能查什么、能连哪里”。') }}

  • {{ t('行数、字节、超时和并发只影响资源消耗,不绕过目标授权范围。') }}
  • {{ t('危险与高开销规则、目标级 CA/mTLS、密钥加密始终生效。') }}
{% elif active_section == "startup" %}

{{ t('启动配置') }}

{{ t('由环境变量/启动参数控制,修改需要重启;这里只读展示。') }}

{% for row in startup_rows %}
{{ t(row.label) }}
{{ t(row.value) }}{{ t(row.note) }}
{% endfor %}
{% elif active_section == "history" %}

{{ t('最近变更') }}

{{ t('最近 5 条系统配置审计摘要。') }}

{% if history %}
    {% for change in history %}
  1. {{ local_time(change.at) }} {{ change.summary }} {{ change.actor }}
  2. {% endfor %}
{% else %}

{{ t('还没有系统配置变更记录。') }}

{% endif %}
{% endif %}
{% if active_group %} {% for row in active_group.rows %} {% endfor %} {% endif %} {% endblock %}