redis storage for captcha mech

This commit is contained in:
realaravinth
2021-06-11 19:31:03 +05:30
parent 17ae532162
commit f5624947b9
29 changed files with 604 additions and 210 deletions

View File

@@ -79,10 +79,17 @@ pub struct Database {
pub pool: u32,
}
#[derive(Debug, Clone, Deserialize)]
pub struct Redis {
pub url: String,
pub pool: u32,
}
#[derive(Debug, Clone, Deserialize)]
pub struct Settings {
pub debug: bool,
pub database: Database,
pub redis: Option<Redis>,
pub server: Server,
pub pow: Captcha,
pub source_code: String,