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)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* config.secret.php 模板(可入库,供复制参考)
|
||||
* 复制为 config.secret.php 并填入真实凭据;config.secret.php 已被 .gitignore 忽略,不会入库。
|
||||
*/
|
||||
return [
|
||||
'db_pass' => '在此填入数据库密码',
|
||||
'admin_pass' => '在此填入后台密码(务必改为强口令,不要用 admin888)',
|
||||
];
|
||||
Reference in New Issue
Block a user