mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-02-18 09:29:45 +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
|
# garbage collection period to manage mCaptcha system
|
||||||
# leave untouched if you don't know what you are doing
|
# leave untouched if you don't know what you are doing
|
||||||
gc = 30
|
gc = 30
|
||||||
|
runners = 4
|
||||||
|
queue_length = 2000
|
||||||
enable_stats = true
|
enable_stats = true
|
||||||
|
|
||||||
[captcha.default_difficulty_strategy]
|
[captcha.default_difficulty_strategy]
|
||||||
|
|
|
@ -37,6 +37,8 @@ pub struct Server {
|
||||||
pub struct Captcha {
|
pub struct Captcha {
|
||||||
pub salt: String,
|
pub salt: String,
|
||||||
pub gc: u64,
|
pub gc: u64,
|
||||||
|
pub runners: Option<usize>,
|
||||||
|
pub queue_length: usize,
|
||||||
pub enable_stats: bool,
|
pub enable_stats: bool,
|
||||||
pub default_difficulty_strategy: DefaultDifficultyStrategy,
|
pub default_difficulty_strategy: DefaultDifficultyStrategy,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue