config.php 1.6 KB

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