feat: queue length and IP runner config

This commit is contained in:
realaravinth 2022-08-09 16:28:30 +05:30
parent c377cf431e
commit 8c576d2b07
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 4 additions and 0 deletions

View file

@ -28,6 +28,8 @@ salt = "asdl;kjfhjawehfpa;osdkjasdvjaksndfpoanjdfainsdfaijdsfajlkjdsaf;ajsdfwero
# garbage collection period to manage mCaptcha system
# leave untouched if you don't know what you are doing
gc = 30
runners = 4
queue_length = 2000
enable_stats = true
[captcha.default_difficulty_strategy]

View file

@ -37,6 +37,8 @@ pub struct Server {
pub struct Captcha {
pub salt: String,
pub gc: u64,
pub runners: Option<usize>,
pub queue_length: usize,
pub enable_stats: bool,
pub default_difficulty_strategy: DefaultDifficultyStrategy,
}