feat(audit): capture IP address, make TRUST_PROXY configurable

This commit is contained in:
SnapOtter
2026-06-13 16:25:58 +08:00
parent f6d5479334
commit 5d2f520d78
9 changed files with 38 additions and 32 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ export async function settingsRoutes(app: FastifyInstance): Promise<void> {
adminId: admin.id,
username: admin.username,
keys: entries.map((e) => e.key),
});
}, request.ip);
}
return reply.send({ ok: true, updatedCount: entries.length });