Files
coolcoth.com/config/config.secret.php.example
T
Lucanlee 6d3962574c perf/security: V0.9.5-0.9.6 db_pending_upgrades 缓存 + config 凭据外置
- V0.9.5 (P3): db_pending_upgrades() 加 static 请求内缓存,同请求只算一次
- V0.9.6 (安全): config.php 移除明文密码,改从 gitignored 的 config.secret.php 或
  环境变量读取;新增 config.secret.php.example 模板;.gitignore 忽略 config/config.secret.php
  (修复 Webhook reset 反复覆盖明文凭据的隐患;服务器部署前需自建 config.secret.php)
2026-08-09 00:34:54 +08:00

10 lines
350 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* config.secret.php 模板(可入库,供复制参考)
* 复制为 config.secret.php 并填入真实凭据;config.secret.php 已被 .gitignore 忽略,不会入库。
*/
return [
'db_pass' => '在此填入数据库密码',
'admin_pass' => '在此填入后台密码(务必改为强口令,不要用 admin888',
];