mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-07 05:13:44 +00:00
feat(dashboard): client_sysinfo permission and retention
client_sysinfo (GM 5, grantable) shows the client system info; the Log pruning task deletes rows not seen for log_client_sysinfo_days (90). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ namespace {
|
||||
{ "accounts_mute", "Accounts", "Mute", "Mute and unmute accounts", 2 },
|
||||
{ "accounts_ban", "Accounts", "Ban and lock", "Ban, unban, lock and unlock accounts", 4 },
|
||||
{ "accounts_links", "Accounts", "Linked accounts", "See other accounts that share a play key, email address or login address with an account", 3 },
|
||||
{ "client_sysinfo", "Accounts", "Client system info", "See the system description each account's game client sent at login (Windows version, video card, processors, memory) and the spread across players. As reported by the client: often compatibility values, not the real hardware. The address each came from also needs logs_audit", 5 },
|
||||
{ "accounts_send_reset", "Accounts", "Send password reset", "Email an account a password reset link", 4 },
|
||||
{ "accounts_manage", "Accounts", "Manage accounts", "Create accounts, change their email or password, reset their two-factor login", 8 },
|
||||
{ "accounts_gm_level", "Accounts", "Set GM levels", "Change GM levels (never to your own level or above, unless GM 9; their own only with self_moderation, and only lower)", 8 },
|
||||
|
||||
@@ -213,6 +213,7 @@ namespace {
|
||||
std::tuple{ std::optional(eLog::COMMAND), "log_command_days", 365 }, std::tuple{ std::optional(eLog::AUDIT), "log_audit_days", 730 },
|
||||
std::tuple{ std::optional(eLog::CHEAT_DETECTION), "log_cheat_detection_days", 365 }, std::tuple{ std::optional(eLog::CHAT), "log_chat_days", 30 },
|
||||
std::tuple{ std::optional(eLog::LOGIN_ADDRESS), "log_login_address_days", 90 },
|
||||
std::tuple{ std::optional(eLog::CLIENT_SYSINFO), "log_client_sysinfo_days", 90 },
|
||||
std::tuple{ std::optional<eLog>(), "log_task_days", 90 },
|
||||
std::tuple{ std::optional<eLog>(), "health_days", 30 },
|
||||
std::tuple{ std::optional<eLog>(), "traffic_days", 30 },
|
||||
|
||||
@@ -412,6 +412,7 @@ namespace {
|
||||
c.Add(Days("log_task_days", "Scheduled task runs", "", "90"));
|
||||
c.Add(Days("log_chat_days", "Chat log", "Every message players sent (zone, whispers, team and guild chat). Chat flags keep a copy of what they flagged.", "30"));
|
||||
c.Add(Days("log_login_address_days", "Login addresses", "Addresses an account hasn't logged in from for this long are forgotten.", "90"));
|
||||
c.Add(Days("log_client_sysinfo_days", "Client system info", "System descriptions clients sent at login that haven't been seen for this long are forgotten.", "90"));
|
||||
c.Add(Days("health_days", "Server health history", "Minute-by-minute player counts and uptime.", "30"));
|
||||
c.Add(Days("traffic_days", "Server traffic history", "Minute-by-minute packets, bytes and HTTP requests of every server (Diagnostics). The last hour at one second is only kept in memory.", "30"));
|
||||
|
||||
|
||||
@@ -256,6 +256,8 @@ backup_mysqldump=mysqldump
|
||||
log_chat_days=30
|
||||
# Login addresses: Addresses an account hasn't logged in from for this long are forgotten. (days)
|
||||
log_login_address_days=90
|
||||
# Client system info: System descriptions clients sent at login that haven't been seen for this long are forgotten. (days)
|
||||
log_client_sysinfo_days=90
|
||||
# Server health history: Minute-by-minute player counts and uptime. (days)
|
||||
health_days=30
|
||||
# Server traffic history: Minute-by-minute packets, bytes and HTTP requests of every server (Diagnostics). The last hour
|
||||
|
||||
Reference in New Issue
Block a user