config.php.example 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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" => "en",
  7. // You can use any Invidious instance here
  8. "invidious_instance_for_video_results" => "https://invidious.namazso.eu",
  9. "disable_bittorent_search" => false,
  10. "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",
  11. "disable_hidden_service_search" => false,
  12. /*
  13. Preset privacy friendly frontends for users, these can be overwritten by users in settings
  14. e.g.: "invidious" => "https://yewtu.be",
  15. */
  16. "invidious" => "", // youtube
  17. "bibliogram" => "", // instagram
  18. "rimgo" => "", // imgur
  19. "scribe" => "", // medium
  20. "librarian" => "", // odysee
  21. "gothub" => "", // github
  22. "nitter" => "", // twitter
  23. "libreddit" => "", // reddit
  24. "proxitok" => "", // tiktok
  25. "wikiless" => "", // wikipedia
  26. "quetre" => "", // quora
  27. "libremdb" => "", // imdb,
  28. "breezewiki" => "", // fandom,
  29. "anonymousoverflow" => "", // stackoverflow
  30. /*
  31. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  32. CURLOPT_PROXYTYPE options:
  33. CURLPROXY_HTTP
  34. CURLPROXY_SOCKS4
  35. CURLPROXY_SOCKS4A
  36. CURLPROXY_SOCKS5
  37. CURLPROXY_SOCKS5_HOSTNAME
  38. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  39. */
  40. "curl_settings" => array(
  41. // CURLOPT_PROXY => "ip:port",
  42. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  43. CURLOPT_RETURNTRANSFER => true,
  44. CURLOPT_ENCODING => "",
  45. 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",
  46. CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
  47. CURLOPT_CUSTOMREQUEST => "GET",
  48. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  49. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  50. CURLOPT_MAXREDIRS => 5,
  51. CURLOPT_TIMEOUT => 18,
  52. CURLOPT_VERBOSE => false
  53. )
  54. );
  55. ?>