Self-Host

To Self-host @ https://link.flossboxin.org.in
This commit is contained in:
vdbhb59 2025-02-21 21:50:36 +05:30
commit c9898cf261
95 changed files with 5217 additions and 0 deletions

173
config.php Normal file
View file

@ -0,0 +1,173 @@
<?php
return (object) array(
// e.g.: fr -> https://google.fr/
"google_domain" => "com",
// Results will be in this language
"language" => "",
"number_of_results" => 20,
// The default theme css to use
// use `ls --ignore={styles,auto}.css static/css | cut -d. -f1` to list valid themes
"default_theme" => "catppuccin_macchiato",
// You can use any Invidious instance here (alternate instance: https://invidious.perennialte.ch)
"invidious_instance_for_video_results" => "https://inv.nadeko.net",
// Fallback tracker list: https://git.flossboxin.org.in/FbIN/trackerslist/raw/branch/master/trackers_best.txt
"disable_bittorrent_search" => false,
// "bittorrent_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",
"bittorrent_trackers" => "&tr=udp://tracker.opentrackr.org:1337/announce&tr=udp://open.tracker.cl:1337/announce&tr=udp://tracker.torrent.eu.org:451/announce&tr=udp://open.stealth.si:80/announce&tr=udp://explodie.org:6969/announce&tr=udp://exodus.desync.com:6969/announce&tr=udp://tracker.tiny-vps.com:6969/announce&tr=udp://open.free-tracker.ga:6969/announce&tr=http://t.jaekr.sh:6969/announce&tr=http://shubt.net:2710/announce&tr=http://share.hkg-fansub.info:80/announce.php&tr=http://servandroidkino.ru:80/announce&tr=http://retracker.spark-rostov.ru:80/announce&tr=http://home.yxgz.club:6969/announce&tr=http://finbytes.org:80/announce.php&tr=http://0123456789nonexistent.com:80/announce&tr=udp://wepzone.net:6969/announce&tr=udp://ttk2.nbaonlineservice.com:6969/announce&tr=udp://tracker2.dler.org:80/announce&tr=udp://tracker.tryhackx.org:6969/announce",
"disable_hidden_service_search" => false,
// Fallback to another librex instance if google search fails
// More instances for services can be found here: https://perennialte.ch/services/#alternative-front-ends
// This may greatly increase the time it takes to get a result, if a direct search is not possible
"instance_fallback" => true,
// how long in minutes to put google/other instances on cooldown if they aren't responding
"request_cooldown" => 25,
// how long in minutes to store results for in the cache, set -1 to disable cache
"cache_time" => 20,
// Disable requests to /api.php - HIGHLY recommended to keep this at false, this is what allows FbIN-LibreY to still show results when Google/DuckDuckGo blocks the requests.
"disable_api" => false,
// whether to show where the result is from on the results page
"show_result_source" => true,
/*
Preset privacy friendly frontends for users, these can be overwritten by users in the settings
e.g.: Preset the invidious instance URL: "instance_url" => "https://inv.nadeko.net",
*/
"frontends" => array(
"invidious" => array(
"instance_url" => "https://inv.nadeko.net",
"project_url" => "https://docs.invidious.io/instances/",
"original_name" => "YouTube",
"original_url" => "youtube.com"
),
"rimgo" => array(
"instance_url" => "https://ri.nadeko.net",
"project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances",
"original_name" => "Imgur",
"original_url" => "imgur.com"
),
"scribe" => array(
"instance_url" => "https://scribe.rip",
"project_url" => "https://git.sr.ht/~edwardloveall/scribe/tree/main/docs/instances.md",
"original_name" => "Medium",
"original_url" => "medium.com"
),
"gothub" => array(
"instance_url" => "",
"project_url" => "https://codeberg.org/gothub/gothub#instances",
"original_name" => "GitHub",
"original_url" => "github.com"
),
"nitter" => array(
"instance_url" => "https://xcancel.com",
"project_url" => "https://github.com/zedeus/nitter/wiki/Instances",
"original_name" => "Twitter",
"original_url" => "twitter.com"
),
"redlib" => array(
"instance_url" => "https://redlib.nadeko.net",
"project_url" => "https://github.com/redlib-org/redlib-instances/blob/main/instances.md",
"original_name" => "Reddit",
"original_url" => "reddit.com"
),
"proxitok" => array(
"instance_url" => "",
"project_url" => "https://github.com/pablouser1/ProxiTok/wiki/Public-instances",
"original_name" => "TikTok",
"original_url" => "tiktok.com"
),
"wikiless" => array(
"instance_url" => "https://wl.vern.cc",
"project_url" => "https://github.com/Metastem/wikiless",
"original_name" => "Wikipedia",
"original_url" => "wikipedia.org"
),
"quetre" => array(
"instance_url" => "https://quetre.pussthecat.org",
"project_url" => "https://github.com/zyachel/quetre#instances",
"original_name" => "Quora",
"original_url" => "quora.com"
),
"libremdb" => array(
"instance_url" => "https://libremdb.pussthecat.org",
"project_url" => "https://github.com/zyachel/libremdb#instances",
"original_name" => "IMDb",
"original_url" => "imdb.com"
),
"breezewiki" => array(
"instance_url" => "https://breezewiki.nadeko.net",
"project_url" => "https://docs.breezewiki.com/Links.html",
"original_name" => "Fandom",
"original_url" => "fandom.com"
),
"anonymousoverflow" => array(
"instance_url" => "https://overflow.adminforge.de",
"project_url" => "https://github.com/httpjamesm/AnonymousOverflow?tab=readme-ov-file#instances",
"original_name" => "StackOverflow",
"original_url" => "stackoverflow.com"
),
"suds" => array(
"instance_url" => "https://sd.vern.cc",
"project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json",
"original_name" => "Snopes",
"original_url" => "snopes.com"
),
"biblioreads" => array(
"instance_url" => "https://bl.vern.cc",
"project_url" => "https://github.com/nesaku/BiblioReads#instances",
"original_name" => "Goodreads",
"original_url" => "goodreads.com"
)
),
"preferred_engines" => array(
/* search engine to use to search, auto will automatically balance between all scrapers, which is recommended. */
"text" => "auto"
// "text" => "google"
// "text" => "duckduckgo"
),
/*
To send requests through a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
CURLOPT_PROXYTYPE options:
CURLPROXY_HTTP
CURLPROXY_SOCKS4
CURLPROXY_SOCKS4A
CURLPROXY_SOCKS5
CURLPROXY_SOCKS5_HOSTNAME
!!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
*/
"curl_settings" => array(
// CURLOPT_PROXY => "ip:port",
// CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0", // For a normal Windows 10 PC running Firefox x64
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_WHATEVER,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
CURLOPT_MAXREDIRS => 5,
CURLOPT_TIMEOUT => 5,
CURLOPT_VERBOSE => false,
CURLOPT_FOLLOWLOCATION => true
)
);
?>