LibreY- privacy respecting meta search engine |
git clone git://git.acid.vegas/LibreY.git |
Log | Files | Refs | Archive | README | LICENSE |
config.php (6634B)
1 <?php 2 return (object) array( 3 4 // e.g.: fr -> https://google.fr/ 5 "google_domain" => "com", 6 7 // Results will be in this language 8 "language" => "", 9 "number_of_results" => 10, 10 11 // You can use any Invidious instance here 12 "invidious_instance_for_video_results" => "https://watch.supernets.org/", 13 14 "disable_bittorent_search" => false, 15 "bittorent_trackers" => "&tr=http://nyaa.tracker.wf:7777/announce&tr=udp://open.stealth.si:80/announce&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://exodus.desync.com:6969/announce&tr=udp://tracker.torrent.eu.org:451/announce", 16 17 "disable_hidden_service_search" => false, 18 19 // Fallback to another librex instance if google search fails 20 // This may greatly increase the time it takes to get a result, if a direct search is not possible 21 "instance_fallback" => true, 22 23 // how long in minutes to put google/other instances on cooldown if they aren't responding 24 "request_cooldown" => 25, 25 26 // how long in minutes to store results for in the cache 27 "cache_time" => 20, 28 29 /* 30 Preset privacy friendly frontends for users, these can be overwritten by users in the settings 31 e.g.: Preset the invidious instance URL: "instance_url" => "https://yewtu.be", 32 */ 33 34 "frontends" => array( 35 "invidious" => array( 36 "instance_url" => "https://watch.supernets.org/", 37 "project_url" => "https://docs.invidious.io/instances/", 38 "original_name" => "YouTube", 39 "original_url" => "youtube.com" 40 ), 41 "rimgo" => array( 42 "instance_url" => "", 43 "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances", 44 "original_name" => "Imgur", 45 "original_url" => "imgur.com" 46 ), 47 "scribe" => array( 48 "instance_url" => "", 49 "project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md", 50 "original_name" => "Medium", 51 "original_url" => "medium.com" 52 ), 53 "gothub" => array( 54 "instance_url" => "", 55 "project_url" => "https://codeberg.org/gothub/gothub#instances", 56 "original_name" => "GitHub", 57 "original_url" => "github.com" 58 ), 59 "nitter" => array( 60 "instance_url" => "", 61 "project_url" => "https://github.com/zedeus/nitter/wiki/Instances", 62 "original_name" => "Twitter", 63 "original_url" => "twitter.com" 64 ), 65 66 "libreddit" => array( 67 "instance_url" => "", 68 "project_url" => "https://github.com/libreddit/libreddit-instances/blob/master/instances.md", 69 "original_name" => "Reddit", 70 "original_url" => "reddit.com" 71 ), 72 "proxitok" => array( 73 "instance_url" => "", 74 "project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances", 75 "original_name" => "TikTok", 76 "original_url" => "tiktok.com" 77 ), 78 "wikiless" => array( 79 "instance_url" => "", 80 "project_url" => "https://github.com/Metastem/wikiless#instances", 81 "original_name" => "Wikipedia", 82 "original_url" => "wikipedia.org" 83 ), 84 "quetre" => array( 85 "instance_url" => "", 86 "project_url" => "https://github.com/zyachel/quetre#instances", 87 "original_name" => "Quora", 88 "original_url" => "quora.com" 89 ), 90 "libremdb" => array( 91 "instance_url" => "", 92 "project_url" => "https://github.com/zyachel/libremdb#instances", 93 "original_name" => "IMDb", 94 "original_url" => "imdb.com" 95 ), 96 "breezewiki" => array( 97 "instance_url" => "", 98 "project_url" => "https://docs.breezewiki.com/Links.html", 99 "original_name" => "Fandom", 100 "original_url" => "fandom.com" 101 ), 102 "anonymousoverflow" => array( 103 "instance_url" => "", 104 "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances", 105 "original_name" => "StackOverflow", 106 "original_url" => "stackoverflow.com" 107 ), 108 "suds" => array( 109 "instance_url" => "", 110 "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json", 111 "original_name" => "Snopes", 112 "original_url" => "snopes.com" 113 ), 114 "biblioreads" => array( 115 "instance_url" => "", 116 "project_url" => "https://github.com/nesaku/BiblioReads#instances", 117 "original_name" => "Goodreads", 118 "original_url" => "goodreads.com" 119 ) 120 ), 121 122 123 "preferred_engines" => array( 124 125 /* replace with "text" => "duckduckgo" to use duckduckgo instead 126 * (recommended if being ratelimited */ 127 //"text" => "google" 128 "text" => "duckduckgo" 129 ), 130 131 132 /* 133 To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE: 134 135 CURLOPT_PROXYTYPE options: 136 137 CURLPROXY_HTTP 138 CURLPROXY_SOCKS4 139 CURLPROXY_SOCKS4A 140 CURLPROXY_SOCKS5 141 CURLPROXY_SOCKS5_HOSTNAME 142 143 !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!! 144 */ 145 "curl_settings" => array( 146 // CURLOPT_PROXY => "ip:port", 147 // CURLOPT_PROXYTYPE => CURLPROXY_HTTP, 148 CURLOPT_RETURNTRANSFER => true, 149 CURLOPT_ENCODING => "", 150 CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:116.0) Gecko/20100101 Firefox/116.0", // For a normal Windows 10 PC running Firefox x64 151 CURLOPT_IPRESOLVE => CURL_IPRESOLVE_WHATEVER, 152 CURLOPT_CUSTOMREQUEST => "GET", 153 CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP, 154 CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP, 155 CURLOPT_MAXREDIRS => 5, 156 CURLOPT_TIMEOUT => 3, 157 CURLOPT_VERBOSE => false, 158 CURLOPT_FOLLOWLOCATION => true 159 ) 160 ); 161 ?>