config.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. return (object) array(
  3. "google_domain" => "${CONFIG_GOOGLE_DOMAIN}",
  4. "language" => "${CONFIG_LANGUAGE}",
  5. "number_of_results" => ${CONFIG_NUMBER_OF_RESULTS},
  6. "invidious_instance_for_video_results" => "${CONFIG_INVIDIOUS_INSTANCE}",
  7. "disable_bittorrent_search" => ${CONFIG_DISABLE_BITTORRENT_SEARCH},
  8. "bittorrent_trackers" => "${CONFIG_BITTORRENT_TRACKERS}",
  9. "disable_hidden_service_search" => ${CONFIG_HIDDEN_SERVICE_SEARCH},
  10. "instance_fallback" => ${CONFIG_INSTANCE_FALLBACK},
  11. "request_cooldown" => ${CONFIG_RATE_LIMIT_COOLDOWN},
  12. "cache_time" => ${CONFIG_CACHE_TIME},
  13. "disable_api" => ${CONFIG_DISABLE_API},
  14. "show_result_source" => ${CONFIG_SHOW_RESULT_SOURCE},
  15. "default_theme" => "${CONFIG_DEFAULT_THEME}",
  16. "frontends" => array(
  17. "invidious" => array(
  18. "instance_url" => "${APP_INVIDIOUS}",
  19. "project_url" => "https://docs.invidious.io/instances/",
  20. "original_name" => "YouTube",
  21. "original_url" => "youtube.com"
  22. ),
  23. "rimgo" => array(
  24. "instance_url" => "${APP_RIMGO}",
  25. "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances",
  26. "original_name" => "Imgur",
  27. "original_url" => "imgur.com"
  28. ),
  29. "scribe" => array(
  30. "instance_url" => "${APP_SCRIBE}",
  31. "project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md",
  32. "original_name" => "Medium",
  33. "original_url" => "medium.com"
  34. ),
  35. "gothub" => array(
  36. "instance_url" => "${APP_GOTHUB}",
  37. "project_url" => "https://codeberg.org/gothub/gothub#instances",
  38. "original_name" => "GitHub",
  39. "original_url" => "github.com"
  40. ),
  41. "nitter" => array(
  42. "instance_url" => "${APP_NITTER}",
  43. "project_url" => "https://github.com/zedeus/nitter/wiki/Instances",
  44. "original_name" => "Twitter",
  45. "original_url" => "twitter.com"
  46. ),
  47. "redlib" => array(
  48. "instance_url" => "${APP_REDLIB}",
  49. "project_url" => "https://github.com/redlib-org/redlib-instances/blob/main/instances.md",
  50. "original_name" => "Reddit",
  51. "original_url" => "reddit.com"
  52. ),
  53. "proxitok" => array(
  54. "instance_url" => "${APP_PROXITOK}",
  55. "project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances",
  56. "original_name" => "TikTok",
  57. "original_url" => "tiktok.com"
  58. ),
  59. "wikiless" => array(
  60. "instance_url" => "${APP_WIKILESS}",
  61. "project_url" => "https://github.com/Metastem/wikiless#instances",
  62. "original_name" => "Wikipedia",
  63. "original_url" => "wikipedia.org"
  64. ),
  65. "quetre" => array(
  66. "instance_url" => "${APP_QUETRE}",
  67. "project_url" => "https://github.com/zyachel/quetre#instances",
  68. "original_name" => "Quora",
  69. "original_url" => "quora.com"
  70. ),
  71. "libremdb" => array(
  72. "instance_url" => "${APP_LIBREMDB}",
  73. "project_url" => "https://github.com/zyachel/libremdb#instances",
  74. "original_name" => "IMDb",
  75. "original_url" => "imdb.com"
  76. ),
  77. "breezewiki" => array(
  78. "instance_url" => "${APP_BREEZEWIKI}",
  79. "project_url" => "https://docs.breezewiki.com/Links.html",
  80. "original_name" => "Fandom",
  81. "original_url" => "fandom.com"
  82. ),
  83. "anonymousoverflow" => array(
  84. "instance_url" => "${APP_ANONYMOUS_OVERFLOW}",
  85. "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances",
  86. "original_name" => "StackOverflow",
  87. "original_url" => "stackoverflow.com"
  88. ),
  89. "suds" => array(
  90. "instance_url" => "${APP_SUDS}",
  91. "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
  92. "original_name" => "Snopes",
  93. "original_url" => "snopes.com"
  94. ),
  95. "biblioreads" => array(
  96. "instance_url" => "${APP_BIBLIOREADS}",
  97. "project_url" => "https://github.com/nesaku/BiblioReads#instances",
  98. "original_name" => "Goodreads",
  99. "original_url" => "goodreads.com"
  100. )
  101. ),
  102. "preferred_engines" => array(
  103. "text" => "${CONFIG_TEXT_SEARCH_ENGINE}"
  104. ),
  105. "curl_settings" => array(
  106. CURLOPT_PROXY => "${CURLOPT_PROXY}",
  107. CURLOPT_PROXYTYPE => ${CURLOPT_PROXYTYPE},
  108. CURLOPT_RETURNTRANSFER => ${CURLOPT_RETURNTRANSFER},
  109. CURLOPT_ENCODING => "${CURLOPT_ENCODING}",
  110. CURLOPT_USERAGENT => "${CURLOPT_USERAGENT}",
  111. CURLOPT_IPRESOLVE => ${CURLOPT_IPRESOLVE},
  112. CURLOPT_CUSTOMREQUEST => "${CURLOPT_CUSTOMREQUEST}",
  113. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  114. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  115. CURLOPT_MAXREDIRS => ${CURLOPT_MAXREDIRS},
  116. CURLOPT_TIMEOUT => ${CURLOPT_TIMEOUT},
  117. CURLOPT_VERBOSE => ${CURLOPT_VERBOSE},
  118. CURLOPT_FOLLOWLOCATION => ${CURLOPT_FOLLOWLOCATION}
  119. )
  120. );
  121. ?>