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

@@ -8,6 +8,8 @@ pub struct ConfigAuth {
#[cached]
pub fn get_config_auth() -> ConfigAuth {
dotenv::dotenv().ok();
let url = env::var("AUTH_URL").expect("AUTH_URL must be set");
ConfigAuth { auth_url: url }