config.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. /*
  11. youtube.com results will be replaced with the given invidious instance
  12. Get online invidious instances from here: https://docs.invidious.io/Invidious-Instances.md
  13. Set as null if you don't want to replace YouTube results
  14. */
  15. $config_replace_yt_with_invidious = "yewtu.be";
  16. /*
  17. To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
  18. CURLOPT_PROXYTYPE options:
  19. CURLPROXY_HTTP
  20. CURLPROXY_SOCKS4
  21. CURLPROXY_SOCKS4A
  22. CURLPROXY_SOCKS5
  23. CURLPROXY_SOCKS5_HOSTNAME
  24. As an example, for a TOR connection you would use these settings:
  25. CURLOPT_PROXY => "127.0.0.1:9050",
  26. CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5,
  27. !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
  28. */
  29. $config_curl_settings = array(
  30. // CURLOPT_PROXY => "ip:port",
  31. // CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
  32. CURLOPT_RETURNTRANSFER => true,
  33. CURLOPT_HEADER => false,
  34. CURLOPT_FOLLOWLOCATION => false,
  35. CURLOPT_ENCODING => "",
  36. CURLOPT_USERAGENT => $config_user_agent,
  37. CURLOPT_SSL_VERIFYHOST => 0,
  38. CURLOPT_VERBOSE => 1
  39. );
  40. ?>