mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-26 03:15:58 +03:00
feat: queue length and IP runner config
This commit is contained in:
parent
c377cf431e
commit
8c576d2b07
2 changed files with 4 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue