Implements Request Limit with Redis

This commit is contained in:
2024-02-26 01:03:26 -03:00
parent b1a223f0a4
commit ee6f242667
15 changed files with 220 additions and 11 deletions

View File

@@ -9,6 +9,8 @@ pub struct ConfigServer {
#[cached]
pub fn get_config_server() -> ConfigServer {
dotenv::dotenv().ok();
let h = option_env!("HOST").unwrap_or("localhost").to_string();
let p = option_env!("PORT")