mirror of
https://github.com/Xevion/banner.git
synced 2025-12-12 18:11:00 -06:00
feat: middleware headers, fix concurrent session cookies issue, middleware headers, invalid session details
This commit is contained in:
@@ -18,6 +18,7 @@ pub struct Config {
|
||||
///
|
||||
/// Valid values are: "trace", "debug", "info", "warn", "error"
|
||||
/// Defaults to "info" if not specified
|
||||
#[serde(default = "default_log_level")]
|
||||
pub log_level: String,
|
||||
/// Discord bot token for authentication
|
||||
pub bot_token: String,
|
||||
@@ -43,6 +44,11 @@ pub struct Config {
|
||||
pub shutdown_timeout: Duration,
|
||||
}
|
||||
|
||||
/// Default log level of "info"
|
||||
fn default_log_level() -> String {
|
||||
"info".to_string()
|
||||
}
|
||||
|
||||
/// Default port of 3000
|
||||
fn default_port() -> u16 {
|
||||
3000
|
||||
|
||||
Reference in New Issue
Block a user