config.php.example 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. return (object) array(
  3. // e.g.: fr -> https://google.fr/
  4. "google_domain" => "com",
  5. // Google results will be in this language
  6. "google_language_site" => "",
  7. "google_language_results" => "",
  8. "google_number_of_results" => 10,
  9. // You can set a language for results in wikipedia
  10. "wikipedia_language" => "en",
  11. // You can use any Invidious instance here
  12. "invidious_instance_for_video_results" => "https://invidious.snopyta.org",
  13. "disable_bittorent_search" => false,
  14. "bittorent_trackers" => "&tr=http://nyaa.tracker.wf:7777/announce&tr=udp://open.stealth.si:80/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://exodus.desync.com:6969/announce&tr=udp://tracker.torrent.eu.org:451/announce",
  15. "disable_hidden_service_search" => false,
  16. /*
  17. Preset privacy friendly frontends for users, these can be overwritten by users in the settings
  18. e.g.: Preset the invidious instance URL: "instance_url" => "https://yewtu.be",
  19. */
  20. "frontends" => array(
  21. "invidious" => array(
  22. "instance_url" => "",
  23. "project_url" => "https://docs.invidious.io/instances/",
  24. "original_name" => "YouTube",
  25. "original_url" => "youtube.com"
  26. ),
  27. "rimgo" => array(
  28. "instance_url" => "",
  29. "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances",
  30. "original_name" => "Imgur",
  31. "original_url" => "imgur.com"
  32. ),
  33. "scribe" => array(
  34. "instance_url" => "",
  35. "project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md",
  36. "original_name" => "Medium",
  37. "original_url" => "medium.com"
  38. ),
  39. "gothub" => array(
  40. "instance_url" => "",
  41. "project_url" => "https://codeberg.org/gothub/gothub#instances",
  42. "original_name" => "GitHub",
  43. "original_url" => "github.com"
  44. ),
  45. "librarian" => array(
  46. "instance_url" => "",
  47. "project_url" => "https://codeberg.org/librarian/librarian#clearnet",
  48. "original_name" => "Odysee",
  49. "original_url" => "odysee.com"
  50. ),
  51. "nitter" => array(
  52. "instance_url" => "",
  53. "project_url" => "https://github.com/zedeus/nitter/wiki/Instances",
  54. "original_name" => "Twitter",
  55. "original_url" => "twitter.com"
  56. ),
  57. "libreddit" => array(
  58. "instance_url" => "",
  59. "project_url" => "https://github.com/libreddit/libreddit-instances/blob/master/instances.md",
  60. "original_name" => "Reddit",
  61. "original_url" => "reddit.com"
  62. ),
  63. "proxitok" => array(
  64. "instance_url" => "",
  65. "project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances",
  66. "original_name" => "TikTok",
  67. "original_url" => "tiktok.com"
  68. ),
  69. "wikiless" => array(
  70. "instance_url" => "",
  71. "project_url" => "https://github.com/Metastem/wikiless#instances",
  72. "original_name" => "Wikipedia",
  73. "original_url" => "wikipedia.org"
  74. ),
  75. "quetre" => array(
  76. "instance_url" => "",
  77. "project_url" => "https://github.com/zyachel/quetre#instances",
  78. "original_name" => "Quora",
  79. "original_url" => "quora.com"
  80. ),
  81. "libremdb" => array(
  82. "instance_url" => "",
  83. "project_url" => "https://github.com/zyachel/libremdb#instances",
  84. "original_name" => "IMDb",
  85. "original_url" => "imdb.com"
  86. ),
  87. "breezewiki" => array(
  88. "instance_url" => "",
  89. "project_url" => "https://docs.breezewiki.com/Links.html",
  90. "original_name" => "Fandom",
  91. "original_url" => "fandom.com"
  92. ),
  93. "anonymousoverflow" => array(
  94. "instance_url" => "",
  95. "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances",
  96. "original_name" => "StackOverflow",
  97. "original_url" => "stackoverflow.com"
  98. ),
  99. "suds" => array(
  100. "instance_url" => "",
  101. "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
  102. "original_name" => "Snopes",
  103. "original_url" => "snopes.com"
  104. ),
  105. "biblioreads" => array(
  106. "instance_url" => "",
  107. "project_url" => "https://github.com/nesaku/BiblioReads#instances",
  108. "original_name" => "Goodreads",
  109. "original_url" => "goodreads.com"
  110. )
  111. ),
  112. /*
  113. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  114. CURLOPT_PROXYTYPE options:
  115. CURLPROXY_HTTP
  116. CURLPROXY_SOCKS4
  117. CURLPROXY_SOCKS4A
  118. CURLPROXY_SOCKS5
  119. CURLPROXY_SOCKS5_HOSTNAME
  120. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  121. */
  122. "curl_settings" => array(
  123. // CURLOPT_PROXY => "ip:port",
  124. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  125. CURLOPT_RETURNTRANSFER => true,
  126. CURLOPT_ENCODING => "",
  127. CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
  128. CURLOPT_IPRESOLVE => CURL_IPRESOLVE_WHATEVER,
  129. CURLOPT_CUSTOMREQUEST => "GET",
  130. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  131. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  132. CURLOPT_MAXREDIRS => 5,
  133. CURLOPT_TIMEOUT => 18,
  134. CURLOPT_VERBOSE => false
  135. )
  136. );
  137. ?>