feat(gateway): 启用 users.json 后台重载扫描线程
Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
1 parent
fea806eb33
commit
fe32751d92
1 file changed
+3
@@ -498,6 +498,9 @@ unsafe extern "C" fn init_process(_cycle: *mut ngx_cycle_t) -> ngx_int_t {
|
||||
Ok(false) => {}
|
||||
Err(e) => util::log_err(&format!("[ipass] 初始化管理员失败: {e}")),
|
||||
}
|
||||
// users.json 变更自动生效:后台扫描线程(必须在 worker 期 spawn ——
|
||||
// master 期 fork 会把持锁状态带进子进程,见 reloader.rs 顶部注释)
|
||||
ipass_core::reloader::worker_spawn();
|
||||
// 对话审计:确保目录存在 + 容量巡检一次(此后由请求写入节流触发)
|
||||
ipass_plugin_llm::llm_audit::startup();
|
||||
// 运行期统计:把上一次退出时落盘的快照灌回共享内存。
|
||||
|
||||
Reference in new issue
Block a user