From 512c47ca271cec2f5f4a1bc03a6b91e2a04098e3 Mon Sep 17 00:00:00 2001 From: hrj Date: Thu, 1 Apr 2021 13:42:46 +0530 Subject: [PATCH] Created Configuration (markdown) --- Configuration.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Configuration.md diff --git a/Configuration.md b/Configuration.md new file mode 100644 index 0000000..6dd4da6 --- /dev/null +++ b/Configuration.md @@ -0,0 +1,37 @@ +The app can be configured via the `config.json` file in the `data/` folder. + +The structure of the file is: +```json +{ + "randomSeed" : 20, + "port" : 8888, + "captchaExpiryTimeLimit" : 5, + "throttle" : 10, + "threadDelay" : 2, + "captchas" : [ { + "name" : "FilterChallenge", + "allowedLevels" : [ "medium", "hard" ], + "allowedMedia" : [ "image/png" ], + "allowedInputType" : [ "text" ], + "config" : { } + }, { + "name" : "GifCaptcha", + "allowedLevels" : [ "hard" ], + "allowedMedia" : [ "image/gif" ], + "allowedInputType" : [ "text" ], + "config" : { } + }, { + "name" : "ShadowTextCaptcha", + "allowedLevels" : [ "easy" ], + "allowedMedia" : [ "image/png" ], + "allowedInputType" : [ "text" ], + "config" : { } + }, { + "name" : "RainDropsCaptcha", + "allowedLevels" : [ "easy", "medium" ], + "allowedMedia" : [ "image/gif" ], + "allowedInputType" : [ "text" ], + "config" : { } + } ] +}% +``` \ No newline at end of file