config.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "SINGLEFILE_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_SINGLEFILE", "USE_SINGLEFILE"],
  10. "description": "Enable SingleFile archiving"
  11. },
  12. "SINGLEFILE_BINARY": {
  13. "type": "string",
  14. "default": "single-file",
  15. "x-aliases": ["SINGLE_FILE_BINARY"],
  16. "description": "Path to single-file binary"
  17. },
  18. "SINGLEFILE_NODE_BINARY": {
  19. "type": "string",
  20. "default": "node",
  21. "x-fallback": "NODE_BINARY",
  22. "description": "Path to Node.js binary"
  23. },
  24. "SINGLEFILE_CHROME_BINARY": {
  25. "type": "string",
  26. "default": "",
  27. "x-fallback": "CHROME_BINARY",
  28. "description": "Path to Chromium binary"
  29. },
  30. "SINGLEFILE_TIMEOUT": {
  31. "type": "integer",
  32. "default": 60,
  33. "minimum": 10,
  34. "x-fallback": "TIMEOUT",
  35. "description": "Timeout for SingleFile in seconds"
  36. },
  37. "SINGLEFILE_USER_AGENT": {
  38. "type": "string",
  39. "default": "",
  40. "x-fallback": "USER_AGENT",
  41. "description": "User agent string"
  42. },
  43. "SINGLEFILE_COOKIES_FILE": {
  44. "type": "string",
  45. "default": "",
  46. "x-fallback": "COOKIES_FILE",
  47. "description": "Path to cookies file"
  48. },
  49. "SINGLEFILE_CHECK_SSL_VALIDITY": {
  50. "type": "boolean",
  51. "default": true,
  52. "x-fallback": "CHECK_SSL_VALIDITY",
  53. "description": "Whether to verify SSL certificates"
  54. },
  55. "SINGLEFILE_CHROME_ARGS": {
  56. "type": "array",
  57. "items": {"type": "string"},
  58. "default": [],
  59. "x-fallback": "CHROME_ARGS",
  60. "description": "Chrome command-line arguments for SingleFile"
  61. },
  62. "SINGLEFILE_ARGS": {
  63. "type": "array",
  64. "items": {"type": "string"},
  65. "default": ["--browser-headless"],
  66. "x-aliases": ["SINGLEFILE_DEFAULT_ARGS"],
  67. "description": "Default single-file arguments"
  68. },
  69. "SINGLEFILE_ARGS_EXTRA": {
  70. "type": "array",
  71. "items": {"type": "string"},
  72. "default": [],
  73. "x-aliases": ["SINGLEFILE_EXTRA_ARGS"],
  74. "description": "Extra arguments to append to single-file command"
  75. }
  76. }
  77. }