config.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "PAPERSDL_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_PAPERSDL", "USE_PAPERSDL"],
  10. "description": "Enable paper downloading with papers-dl"
  11. },
  12. "PAPERSDL_BINARY": {
  13. "type": "string",
  14. "default": "papers-dl",
  15. "description": "Path to papers-dl binary"
  16. },
  17. "PAPERSDL_TIMEOUT": {
  18. "type": "integer",
  19. "default": 300,
  20. "minimum": 30,
  21. "x-fallback": "TIMEOUT",
  22. "description": "Timeout for paper downloads in seconds"
  23. },
  24. "PAPERSDL_ARGS": {
  25. "type": "array",
  26. "items": {"type": "string"},
  27. "default": ["fetch"],
  28. "x-aliases": ["PAPERSDL_DEFAULT_ARGS"],
  29. "description": "Default papers-dl arguments"
  30. },
  31. "PAPERSDL_ARGS_EXTRA": {
  32. "type": "array",
  33. "items": {"type": "string"},
  34. "default": [],
  35. "x-aliases": ["PAPERSDL_EXTRA_ARGS"],
  36. "description": "Extra arguments to append to papers-dl command"
  37. }
  38. }
  39. }