Huge refactor, submission system addition & security improvements. +Implementation of moderation cmds.

This commit is contained in:
unknown
2026-05-22 21:46:06 +02:00
parent 12a0035699
commit 2129081599
32 changed files with 3426 additions and 106 deletions

View File

@@ -100,6 +100,24 @@ pub struct RateLimitConfig {
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct LoggingConfig {
pub level: String,
#[serde(default = "default_file_enabled")]
pub file_enabled: bool,
#[serde(default = "default_file_path")]
pub file_path: String,
#[serde(default = "default_max_files")]
pub max_files: usize,
}
fn default_file_enabled() -> bool {
true
}
fn default_file_path() -> String {
"data/logs/cgcx-server.log".to_string()
}
fn default_max_files() -> usize {
7
}
#[derive(Debug, Clone, Deserialize, Serialize)]