config.php 2.0 KB

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