config.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "MERCURY_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_MERCURY", "USE_MERCURY"],
  10. "description": "Enable Mercury text extraction"
  11. },
  12. "MERCURY_BINARY": {
  13. "type": "string",
  14. "default": "postlight-parser",
  15. "x-aliases": ["POSTLIGHT_PARSER_BINARY"],
  16. "description": "Path to Mercury/Postlight parser binary"
  17. },
  18. "MERCURY_TIMEOUT": {
  19. "type": "integer",
  20. "default": 30,
  21. "minimum": 5,
  22. "x-fallback": "TIMEOUT",
  23. "description": "Timeout for Mercury in seconds"
  24. },
  25. "MERCURY_ARGS": {
  26. "type": "array",
  27. "items": {"type": "string"},
  28. "default": [],
  29. "x-aliases": ["MERCURY_DEFAULT_ARGS"],
  30. "description": "Default Mercury parser arguments"
  31. },
  32. "MERCURY_ARGS_EXTRA": {
  33. "type": "array",
  34. "items": {"type": "string"},
  35. "default": [],
  36. "x-aliases": ["MERCURY_EXTRA_ARGS"],
  37. "description": "Extra arguments to append to Mercury parser command"
  38. }
  39. }
  40. }