searxng_config.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. {
  2. "title": "SearXNG config",
  3. "description": "Unofficial schema draft for SearXNG config",
  4. "type": "object",
  5. "properties": {
  6. "autocomplete": {
  7. "description": "The search engine used for autocomplete results",
  8. "type": "string",
  9. "minLength": 0,
  10. "maxLength": 255
  11. },
  12. "brand": {
  13. "description": "Metadata for this instance",
  14. "type": "object",
  15. "properties": {
  16. "CONTACT_URL": {
  17. "oneOf": [
  18. {
  19. "type": "boolean"
  20. },
  21. {
  22. "type": "string",
  23. "format": "uri"
  24. },
  25. {
  26. "type": "null"
  27. }
  28. ]
  29. },
  30. "DOCS_URL": {
  31. "oneOf": [
  32. {
  33. "type": "boolean"
  34. },
  35. {
  36. "type": "string",
  37. "format": "uri"
  38. },
  39. {
  40. "type": "null"
  41. }
  42. ]
  43. },
  44. "GIT_BRANCH": {"type": "string"},
  45. "GIT_URL": {"type": "string", "format": "uri"},
  46. "PRIVACYPOLICY_URL": {
  47. "oneOf": [
  48. {
  49. "type": "boolean"
  50. },
  51. {
  52. "type": "string",
  53. "format": "uri"
  54. },
  55. {
  56. "type": "null"
  57. }
  58. ]
  59. }
  60. },
  61. "additionalProperties": false
  62. },
  63. "categories": {
  64. "description": "List with search categories",
  65. "type": "array",
  66. "items": {
  67. "type": "string",
  68. "minLength": 1,
  69. "maxLength": 255
  70. },
  71. "minItems": 0,
  72. "maxItems": 128
  73. },
  74. "default_doi_resolver": {
  75. "type": "string",
  76. "format": "uri"
  77. },
  78. "default_locale": {
  79. "type": "string",
  80. "minLength": 0,
  81. "maxLength": 32
  82. },
  83. "default_theme": {
  84. "type": "string",
  85. "minLength": 0,
  86. "maxLength": 32
  87. },
  88. "doi_resolvers": {
  89. "description": "Available doi resolvers",
  90. "type": "array",
  91. "items": {
  92. "type": "string",
  93. "format": "uri"
  94. },
  95. "minItems": 0,
  96. "maxItems": 128
  97. },
  98. "engines": {
  99. "description": "List with search engine objects",
  100. "type": "array",
  101. "items": {
  102. "type": "object",
  103. "properties": {
  104. "categories": {
  105. "description": "List with search categories that this engine is part of",
  106. "type": "array",
  107. "items": {
  108. "type": "string",
  109. "minLength": 1,
  110. "maxLength": 255
  111. },
  112. "minItems": 0,
  113. "maxItems": 128
  114. },
  115. "enabled": {
  116. "description": "Whether this engine is enabled or not",
  117. "type": "boolean"
  118. },
  119. "language_support": {
  120. "description": "Whether this engine supports searching in a given language",
  121. "type": "boolean"
  122. },
  123. "languages": {
  124. "description": "Languages this search engines supports (SearXNG)",
  125. "type": "array",
  126. "items": {
  127. "type": "string",
  128. "minLength": 1,
  129. "maxLength": 32
  130. },
  131. "minItems": 0,
  132. "maxItems": 1024
  133. },
  134. "supported_languages": {
  135. "description": "Languages this search engines supports (SearX)",
  136. "type": "array",
  137. "items": {
  138. "type": "string",
  139. "minLength": 1,
  140. "maxLength": 32
  141. },
  142. "minItems": 0,
  143. "maxItems": 8192
  144. },
  145. "name": {
  146. "description": "Search engine name",
  147. "type": "string",
  148. "minLength": 1,
  149. "maxLength": 128
  150. },
  151. "paging": {
  152. "description": "Whether this engine supports paging",
  153. "type": "boolean"
  154. },
  155. "regions": {
  156. "description": "Regions this search engines supports (TODO this the same as languages?)",
  157. "type": "array",
  158. "items": {
  159. "description": "Example: da-DK",
  160. "type": "string",
  161. "minLength": 1,
  162. "maxLength": 32
  163. },
  164. "minItems": 0,
  165. "maxItems": 1024
  166. },
  167. "safesearch": {
  168. "description": "Whether safe search is supported by this engine",
  169. "type": "boolean"
  170. },
  171. "shortcut": {
  172. "description": "Shortcut for this engine",
  173. "type": "string",
  174. "minLength": 0,
  175. "maxLength": 16
  176. },
  177. "time_range_support": {
  178. "description": "Whether this engine supports searching based on time range",
  179. "type": "boolean"
  180. },
  181. "timeout": {
  182. "type": "number",
  183. "minimum": 1,
  184. "maximum": 120
  185. }
  186. },
  187. "additionalProperties": false
  188. },
  189. "minItems": 0,
  190. "maxItems": 1024
  191. },
  192. "instance_name": {
  193. "description": "Fancy name of this instance",
  194. "type": "string",
  195. "minLength": 1,
  196. "maxLength": 255
  197. },
  198. "limiter": {
  199. "type": "object",
  200. "properties": {
  201. "botdetection.ip_limit.link_token": {
  202. "type": "boolean"
  203. },
  204. "botdetection.ip_lists.pass_searxng_org": {
  205. "type": "boolean"
  206. },
  207. "enabled": {
  208. "type": "boolean"
  209. }
  210. }
  211. },
  212. "locales": {
  213. "description": "List of locales this SearXNG instance supports",
  214. "type": "object",
  215. "propertyNames": {
  216. "description": "Locale code",
  217. "type": "string",
  218. "minLength": 2,
  219. "maxLength": 16
  220. },
  221. "additionalProperties": {
  222. "description": "Locale full name",
  223. "type": "string",
  224. "minLength": 3,
  225. "maxLength": 128
  226. }
  227. },
  228. "plugins": {
  229. "description": "List of available plugins and their status",
  230. "type": "array",
  231. "items": {
  232. "type": "object",
  233. "properties": {
  234. "enabled": {
  235. "description": "Whether this plugin is enabled or not",
  236. "type": "boolean"
  237. },
  238. "name": {
  239. "description": "Name of this plugin",
  240. "type": "string"
  241. }
  242. },
  243. "additionalProperties": false
  244. }
  245. },
  246. "public_instance": {
  247. "description": "Whether this is a public (true) or private (false) instance",
  248. "type": "boolean"
  249. },
  250. "safe_search": {
  251. "description": "Whether safe search is enabled or not",
  252. "type": "number",
  253. "enum": [0, 1, 2]
  254. },
  255. "version": {
  256. "anyOf": [
  257. {
  258. "type": "string",
  259. "description": "Version pattern SearXNG",
  260. "pattern": "^([0-9]{1,4}\\.){2}([0-9]{1,4})(\\+[a-fA-F0-9]{1,9})?$"
  261. },
  262. {
  263. "type": "string",
  264. "description": "Version pattern SearX",
  265. "pattern": "^([0-9]{1,4}\\.){2}([0-9]{1,4})((\\-[0-9]{1,4}\\-[a-fA-F0-9]{1,10})|(-unknown))?$"
  266. }
  267. ]
  268. }
  269. },
  270. "additionalProperties": false
  271. }