config.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "WGET_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_WGET", "USE_WGET"],
  10. "description": "Enable wget archiving"
  11. },
  12. "WGET_WARC_ENABLED": {
  13. "type": "boolean",
  14. "default": true,
  15. "x-aliases": ["SAVE_WARC", "WGET_SAVE_WARC"],
  16. "description": "Save WARC archive file"
  17. },
  18. "WGET_BINARY": {
  19. "type": "string",
  20. "default": "wget",
  21. "description": "Path to wget binary"
  22. },
  23. "WGET_TIMEOUT": {
  24. "type": "integer",
  25. "default": 60,
  26. "minimum": 5,
  27. "x-fallback": "TIMEOUT",
  28. "description": "Timeout for wget in seconds"
  29. },
  30. "WGET_USER_AGENT": {
  31. "type": "string",
  32. "default": "",
  33. "x-fallback": "USER_AGENT",
  34. "description": "User agent string for wget"
  35. },
  36. "WGET_COOKIES_FILE": {
  37. "type": "string",
  38. "default": "",
  39. "x-fallback": "COOKIES_FILE",
  40. "description": "Path to cookies file"
  41. },
  42. "WGET_CHECK_SSL_VALIDITY": {
  43. "type": "boolean",
  44. "default": true,
  45. "x-fallback": "CHECK_SSL_VALIDITY",
  46. "description": "Whether to verify SSL certificates"
  47. },
  48. "WGET_ARGS": {
  49. "type": "array",
  50. "items": {"type": "string"},
  51. "default": [
  52. "--no-verbose",
  53. "--adjust-extension",
  54. "--convert-links",
  55. "--force-directories",
  56. "--backup-converted",
  57. "--span-hosts",
  58. "--no-parent",
  59. "--page-requisites",
  60. "--restrict-file-names=windows",
  61. "--tries=2",
  62. "-e", "robots=off"
  63. ],
  64. "x-aliases": ["WGET_DEFAULT_ARGS"],
  65. "description": "Default wget arguments"
  66. },
  67. "WGET_ARGS_EXTRA": {
  68. "type": "array",
  69. "items": {"type": "string"},
  70. "default": [],
  71. "x-aliases": ["WGET_EXTRA_ARGS"],
  72. "description": "Extra arguments to append to wget command"
  73. }
  74. }
  75. }