config.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. // This user agent will be used to access Google
  3. $config_user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36";
  4. // e.g.: fr -> https://google.fr/
  5. $config_google_domain = "com";
  6. // Results will be in this language
  7. $config_google_language = "en";
  8. // Disable BitTorrent search
  9. $config_disable_bittorent_search = false;
  10. $config_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. /*
  12. youtube.com results will be replaced with the given invidious instance
  13. Get online invidious instances from here: https://docs.invidious.io/Invidious-Instances.md
  14. Set as null if you don't want to replace YouTube results
  15. */
  16. $config_replace_yt_with_invidious = "yewtu.be";
  17. /*
  18. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  19. CURLOPT_PROXYTYPE options:
  20. CURLPROXY_HTTP
  21. CURLPROXY_SOCKS4
  22. CURLPROXY_SOCKS4A
  23. CURLPROXY_SOCKS5
  24. CURLPROXY_SOCKS5_HOSTNAME
  25. As an example, for a TOR connection you would use these settings:
  26. CURLOPT_PROXY => "127.0.0.1:9050",
  27. CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5,
  28. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  29. */
  30. $config_curl_settings = array(
  31. // CURLOPT_PROXY => "ip:port",
  32. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  33. CURLOPT_RETURNTRANSFER => true,
  34. CURLOPT_HEADER => false,
  35. CURLOPT_FOLLOWLOCATION => false,
  36. CURLOPT_ENCODING => "",
  37. CURLOPT_USERAGENT => $config_user_agent,
  38. CURLOPT_SSL_VERIFYHOST => 0,
  39. CURLOPT_VERBOSE => 1
  40. );
  41. ?>