options.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "additionalProperties": false,
  3. "type": "object",
  4. "definitions": {
  5. "MatchCondition": {
  6. "anyOf": [{ "instanceof": "RegExp" }, { "$ref": "#/definitions/Path" }]
  7. },
  8. "MatchConditions": {
  9. "type": "array",
  10. "items": { "$ref": "#/definitions/MatchCondition" },
  11. "minItems": 1
  12. },
  13. "OverlayOptions": {
  14. "additionalProperties": false,
  15. "type": "object",
  16. "properties": {
  17. "entry": {
  18. "anyOf": [{ "const": false }, { "$ref": "#/definitions/Path" }]
  19. },
  20. "module": {
  21. "anyOf": [{ "const": false }, { "$ref": "#/definitions/Path" }]
  22. },
  23. "sockIntegration": {
  24. "anyOf": [
  25. { "const": false },
  26. { "enum": ["wds", "whm", "wps"] },
  27. { "$ref": "#/definitions/Path" }
  28. ]
  29. },
  30. "sockHost": { "type": "string" },
  31. "sockPath": { "type": "string" },
  32. "sockPort": { "type": "number", "minimum": 0 },
  33. "useLegacyWDSSockets": { "type": "boolean" }
  34. }
  35. },
  36. "Path": { "type": "string", "absolutePath": true }
  37. },
  38. "properties": {
  39. "exclude": {
  40. "anyOf": [
  41. { "$ref": "#/definitions/MatchCondition" },
  42. { "$ref": "#/definitions/MatchConditions" }
  43. ]
  44. },
  45. "forceEnable": { "type": "boolean" },
  46. "include": {
  47. "anyOf": [
  48. { "$ref": "#/definitions/MatchCondition" },
  49. { "$ref": "#/definitions/MatchConditions" }
  50. ]
  51. },
  52. "overlay": {
  53. "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/OverlayOptions" }]
  54. }
  55. }
  56. }