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