config.php.example 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. "disable_bittorent_search" => false,
  8. "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",
  9. "disable_hidden_service_search" => false,
  10. /*
  11. Preset privacy friendly frontends for users, these can be overwritten by users in settings
  12. e.g.: "invidious" => "https://yewtu.be",
  13. */
  14. "invidious" => "", // youtube
  15. "bibliogram" => "", // instagram
  16. "nitter" => "", // twitter
  17. "libreddit" => "", // reddit
  18. "proxitok" => "", // tiktok
  19. "wikiless" => "", // wikipedia
  20. "quetre" => "", // quora
  21. "libremdb" => "", // imdb
  22. /*
  23. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  24. CURLOPT_PROXYTYPE options:
  25. CURLPROXY_HTTP
  26. CURLPROXY_SOCKS4
  27. CURLPROXY_SOCKS4A
  28. CURLPROXY_SOCKS5
  29. CURLPROXY_SOCKS5_HOSTNAME
  30. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  31. */
  32. "curl_settings" => array(
  33. // CURLOPT_PROXY => "ip:port",
  34. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  35. CURLOPT_RETURNTRANSFER => true,
  36. CURLOPT_ENCODING => "",
  37. CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
  38. CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
  39. CURLOPT_CUSTOMREQUEST => "GET",
  40. CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  41. CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
  42. CURLOPT_MAXREDIRS => 5,
  43. CURLOPT_TIMEOUT => 18,
  44. CURLOPT_VERBOSE => false
  45. )
  46. );
  47. ?>