|
2 rokov pred | |
---|---|---|
engines | 2 rokov pred | |
misc | 2 rokov pred | |
static | 2 rokov pred | |
.gitignore | 2 rokov pred | |
LICENSE | 3 rokov pred | |
README.md | 2 rokov pred | |
api.php | 2 rokov pred | |
auto_updater.sh | 2 rokov pred | |
config.php.example | 2 rokov pred | |
donate.php | 2 rokov pred | |
favicon.ico | 2 rokov pred | |
image_proxy.php | 2 rokov pred | |
index.php | 2 rokov pred | |
librex_updater.service | 2 rokov pred | |
opensearch.xml.example | 2 rokov pred | |
search.php | 2 rokov pred | |
settings.php | 2 rokov pred |
A privacy respecting free as in freedom meta search engine
| URL | Country | TOR | I2P | |-|-|-|-| | librex.beparanoid.de | 🇨🇭 CH | ✅ | ✅ | | search.davidovski.xyz | 🇬🇧 UK | ❌ | ❌ | | librex.elpengu.com | 🇫🇷 FR | ❌ | ❌ | | so2mpiyfo4cje7bof5v52...onion | 🧅 ?? | ✅ | ❌ |
If you wish to get your instance added create an issue with the new instance
label and this information:
Your request will be rejected if your instance:
Install the packages:
sudo apt install php php-fpm php-dom php-curl nginx
Clone LibreX:
git clone https://github.com/hnhx/librex.git
Make sure that the config and the opensearch file won't change when you do git pull:
cd librex
mv config.php.example config.php
mv opensearch.xml.example opensearch.xml
Change opensearch.xml to point to your domain:
sed -i 's/http:\/\/localhost/https:\/\/your.domain/g' opensearch.xml
To keep LibreX up to date enable the LibreX systemd service:
cp librex_updater.service /etc/systemd/system/
systemctl enable --now librex_updater # edit the service file before you enable it
Example nginx config:
server {
listen 80;
server_name your.domain;
root /var/www/html/librex;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}
Start the php-fpm and the nginx systemd service
sudo systemctl enable --now php7.4-fpm nginx # replace the version if its needed
Now LibreX should be running!
Example API request: .../api.php?q=gentoo&p=2&type=0
q
is the keywordp
is the result page (the first page is 0
)type
is the search type (0
=text, 1
=image, 2
=video, 3
=torrent)
The API also supports both POST and GET requests.
### Monero (XMR)
41dGQr9EwZBfYBY3fibTtJZYfssfRuzJZDSVDeneoVcgckehK3BiLxAV4FvEVJiVqdiW996zvMxhFB8G8ot9nBFqQ84VkuC```