config.php.example 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. // You can use any Invidious instance here
  9. "invidious_instance_for_video_results" => "https://invidious.namazso.eu",
  10. "disable_bittorent_search" => false,
  11. "bittorent_trackers" => "&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce",
  12. "disable_hidden_service_search" => false,
  13. /*
  14. Preset privacy friendly frontends for users, these can be overwritten by users in the settings
  15. e.g.: Preset the invidious instance URL: "instance_url" => "https://yewtu.be",
  16. */
  17. "frontends" => array(
  18. "invidious" => array(
  19. "instance_url" => "",
  20. "project_url" => "https://docs.invidious.io/instances/",
  21. "original_name" => "YouTube",
  22. "original_url" => "youtube.com"
  23. ),
  24. "bibliogram" => array(
  25. "instance_url" => "",
  26. "project_url" => "https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md",
  27. "original_name" => "Instagram",
  28. "original_url" => "instagram.com"
  29. ),
  30. "rimgo" => array(
  31. "instance_url" => "",
  32. "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances",
  33. "original_name" => "Imgur",
  34. "original_url" => "imgur.com"
  35. ),
  36. "scribe" => array(
  37. "instance_url" => "",
  38. "project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md",
  39. "original_name" => "Medium",
  40. "original_url" => "medium.com"
  41. ),
  42. "gothub" => array(
  43. "instance_url" => "",
  44. "project_url" => "https://codeberg.org/gothub/gothub/wiki/Instances",
  45. "original_name" => "GitHub",
  46. "original_url" => "github.com"
  47. ),
  48. "librarian" => array(
  49. "instance_url" => "",
  50. "project_url" => "https://codeberg.org/librarian/librarian#clearnet",
  51. "original_name" => "Odysee",
  52. "original_url" => "odysee.com"
  53. ),
  54. "nitter" => array(
  55. "instance_url" => "",
  56. "project_url" => "https://github.com/zedeus/nitter/wiki/Instances",
  57. "original_name" => "Twitter",
  58. "original_url" => "twitter.com"
  59. ),
  60. "libreddit" => array(
  61. "instance_url" => "",
  62. "project_url" => "https://github.com/spikecodes/libreddit",
  63. "original_name" => "Reddit",
  64. "original_url" => "reddit.com"
  65. ),
  66. "proxitok" => array(
  67. "instance_url" => "",
  68. "project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances",
  69. "original_name" => "TikTok",
  70. "original_url" => "tiktok.com"
  71. ),
  72. "wikiless" => array(
  73. "instance_url" => "",
  74. "project_url" => "https://github.com/Metastem/wikiless#instances",
  75. "original_name" => "Wikipedia",
  76. "original_url" => "wikipedia.com"
  77. ),
  78. "quetre" => array(
  79. "instance_url" => "",
  80. "project_url" => "https://github.com/zyachel/quetre",
  81. "original_name" => "Quora",
  82. "original_url" => "quora.com"
  83. ),
  84. "libremdb" => array(
  85. "instance_url" => "",
  86. "project_url" => "https://github.com/zyachel/libremdb",
  87. "original_name" => "IMDb",
  88. "original_url" => "imdb.com"
  89. ),
  90. "breezewiki" => array(
  91. "instance_url" => "",
  92. "project_url" => "https://gitdab.com/cadence/breezewiki",
  93. "original_name" => "Fandom",
  94. "original_url" => "fandom.com"
  95. ),
  96. "anonymousoverflow" => array(
  97. "instance_url" => "",
  98. "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances",
  99. "original_name" => "StackOverflow",
  100. "original_url" => "stackoverflow.com"
  101. )
  102. ),
  103. /*
  104. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  105. CURLOPT_PROXYTYPE options:
  106. CURLPROXY_HTTP
  107. CURLPROXY_SOCKS4
  108. CURLPROXY_SOCKS4A
  109. CURLPROXY_SOCKS5
  110. CURLPROXY_SOCKS5_HOSTNAME
  111. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  112. */
  113. "curl_settings" => array(
  114. // CURLOPT_PROXY => "ip:port",
  115. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  116. CURLOPT_RETURNTRANSFER => true,
  117. CURLOPT_ENCODING => "",
  118. 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",
  119. CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
  120. CURLOPT_CUSTOMREQUEST => "GET",
  121. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  122. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  123. CURLOPT_MAXREDIRS => 5,
  124. CURLOPT_TIMEOUT => 18,
  125. CURLOPT_VERBOSE => false
  126. )
  127. );
  128. ?>