The search engine is available at search.libre:45260.
The search engine is currently down, while I try to rewrite the web crawler. Previously, crawling progress has been almost 0, due to the crawler taking up too much RAM.
The search engine is up and running, but no crawling is taking place due to the above.^^
If you would like to host your own version of this site, for development purposes or otherwise, follow these steps:
- Create a Python virtual environment inside the empty
.venvfolder. - This has been tested with Python 3.10.
-
Install Python dependencies using pip.
pip install -r requirements.txt
-
While in the
opennic_searchfolder, run:maturin develop -r
Note: You can safely ignore the warning about the
extension-modulefeature not being enabled.
-
Build the project using Cargo:
cargo build -r
-
After building, run the following command to host the site:
cargo run -r
-
Start the Python crawler (with the venv activated!):
python main.py
Important: The search engine relies on the crawler for finding sites, so ensure the crawler is running unless you want no search results.
The following options can be adjusted in the config.json file:
hostname: The domain the site accepts requests from (e.g.,search.libre).port: The port number the site will use. Defaults to80for HTTP.bind_address: The IP address the server will listen on. Set it to127.0.0.1to bind to localhost or0.0.0.0for external access.restrict_hostname: Iftrue, the server only accepts requests from the specifiedhostname. Otherwise, it accepts requests from any hostname.