lunr
lunr -- an anonymous, private, and secure meta search engine
System requirements
- Unix-like OS (Windows isn't supported)
- PHP 7.1+
- Web-server (Nginx or Apache2);
Installation
Nginx
- Install nginx if you haven't already.
apt install nginx
- Install php and php-fpm.
apt install php php-fpm
- Make a server block that allows execution of php. In this example the page is being served from
/var/www/lunr
.
server {
listen 80;
listen [::]:80;
server_name yoursite.com www.yoursite.com;
root /var/www/lunr;
index index.php;
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
- Clone the repository or upload the files to
/var/www/lunr
.
git clone https://github.com/obsidianbit/lunr.git
You are all set! Enjoy browsing knowing you aren't being tracked.
Apache2
Because I have not deployed lunr with apache2 I will only redirect you to a tutorial. How To Set Up Apache Virtual Hosts on Ubuntu 18.04
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.