{
  "_note_db": "══════ 数据库配置 ══════ 切换 db_type 即可切换数据库，无需重新编译",
  "db_type": "sqlite",
  "_note_db_type": "可选 sqlite 或 mysql。sqlite 使用 db_path；mysql 使用 db_host/db_port/db_user/db_pass/db_name",
  "db_host": "127.0.0.1",
  "db_port": 3306,
  "db_user": "root",
  "db_pass": "root",
  "db_name": "eaglecmsgo",
  "db_path": "data/eaglecms.db",
  "_note_db_path": "SQLite 数据库文件路径（仅 db_type=sqlite 时生效）",

  "_note_server": "══════ 服务配置 ══════",
  "port": ":8080",
  "_note_port": "服务监听端口，格式 :端口号",
  "secret_key": "EagleCMS-secret-key-2024",
  "_note_secret": "Session/CSRF 密钥，生产环境请修改为随机字符串",

  "_note_session": "══════ 会话与安全配置 ══════",
  "session_max_age": 168,
  "_note_session_max_age": "会话 Token 过期时间（小时），默认 168（7天）",
  "login_max_attempts": 5,
  "_note_login_max_attempts": "登录最大尝试次数，超过后锁定。默认 5",
  "login_rate_window": 15,
  "_note_login_rate_window": "登录频率限制时间窗口（分钟），默认 15",
  "csrf_max_age": 86400,
  "_note_csrf_max_age": "CSRF Token Cookie 过期时间（秒），默认 86400（24小时）",

  "_note_captcha": "══════ 验证码配置 ══════",
  "captcha_length": 4,
  "_note_captcha_length": "验证码字符数（建议 4-6），默认 4",
  "captcha_expiry": 5,
  "_note_captcha_expiry": "验证码过期时间（分钟），默认 5",
  "captcha_width": 120,
  "_note_captcha_width": "验证码图片宽度（像素），默认 120",
  "captcha_height": 40,
  "_note_captcha_height": "验证码图片高度（像素），默认 40",

  "_note_paths": "══════ 文件目录配置 ══════",
  "upload_dir": "static/upload",
  "_note_upload_dir": "上传文件存储目录，默认 static/upload",
  "backup_dir": "data/backup",
  "_note_backup_dir": "数据库备份文件存储目录，默认 data/backup",
  "static_dir": "static/html",
  "_note_static_dir": "静态页面生成输出目录，默认 static/html",

  "_note_cache": "══════ 缓存配置 ══════",
  "cache_default_ttl": 60,
  "_note_cache_default_ttl": "默认缓存过期时间（分钟），影响幻灯片/分类/友情链接等缓存。默认 60",
  "cache_article_ttl": 5,
  "_note_cache_article_ttl": "文章列表缓存过期时间（分钟），默认 5",

  "_note_homepage": "══════ 首页内容数量配置 ══════",
  "homepage_service_limit": 4,
  "_note_homepage_service_limit": "首页服务栏目显示数量，默认 4",
  "homepage_testimonial_limit": 3,
  "_note_homepage_testimonial_limit": "首页评价显示数量，默认 3",
  "homepage_doctor_limit": 4,
  "_note_homepage_doctor_limit": "首页医生/团队显示数量，默认 4",
  "homepage_faq_limit": 6,
  "_note_homepage_faq_limit": "首页常见问题（FAQ）显示数量，默认 6",

  "_note_dbpool": "══════ 数据库连接池配置 ══════",
  "db_max_open_conns": 100,
  "_note_db_max_open_conns": "数据库最大打开连接数，默认 100",
  "db_max_idle_conns": 10,
  "_note_db_max_idle_conns": "数据库最大空闲连接数，默认 10",

  "_note_staticgen": "══════ 静态页面生成配置 ══════",
  "static_gen_timeout": 30,
  "_note_static_gen_timeout": "静态页面生成 HTTP 请求超时时间（秒），默认 30",

  "_note_template": "══════ 前端模板配置 ══════",
  "template_dir": "templates/frontend",
  "_note_template_dir": "前端模板文件目录，默认 templates/frontend",

  "_note_cors": "══════ CORS 跨域配置（影响 OpenAPI 接口） ══════",
  "cors_allowed_origins": "*",
  "_note_cors_allowed_origins": "CORS 允许的源，默认 * 表示允许所有来源。生产环境建议设置为具体域名",
  "cors_allowed_methods": "GET, POST, PUT, DELETE, OPTIONS",
  "_note_cors_allowed_methods": "CORS 允许的 HTTP 方法",
  "cors_allowed_headers": "Content-Type, Authorization",
  "_note_cors_allowed_headers": "CORS 允许的请求头",
  "cors_max_age": 86400,
  "_note_cors_max_age": "CORS 预检请求缓存时间（秒），默认 86400（24小时）",

  "_note_redis": "══════ Redis 缓存配置（可选，留空则不启用缓存） ══════",
  "redis_addr": "127.0.0.1:6379",
  "_note_redis_addr": "Redis 地址，如 127.0.0.1:6379。留空则不启用 Redis 缓存",
  "redis_pass": "",
  "_note_redis_pass": "Redis 密码（无密码留空）",
  "redis_db": 1,
  "_note_redis_db": "Redis 数据库编号（默认 0）"
}
