Files
Myrient-Search-Engine/README.md

53 lines
1.8 KiB
Markdown
Raw Normal View History

2024-10-18 04:19:53 -06:00
# Myrient Search Engine
It is finally here. There is now a way to search all of Myrient's offerings.
[Myrient Search](https://myrientsearch.org) can be accessed by clicking the link.
# Requirements
1. nodejs
2. npm
3. Requires at least 1.1GB worth of memory to complete the crawl
4. Requires roughly 2.1GB worth of memory to complete indexing. Once done idle memory usage is about 1.1GB. Consider using swap in a low memory environment.
2024-10-18 04:19:53 -06:00
# Self-Hosting
2024-10-18 04:28:26 -06:00
1. Clone the repository. `git clone https://github.com/alexankitty/Myrient-Search-Engine`
2024-10-18 04:19:53 -06:00
2. Install dependencies. `npm i`
3. Start the server. `node server.js`
# HTTPS Encryption
2024-10-18 04:22:13 -06:00
Use something like `nginx` and add a site to sites-available called myrient-search in `/etc/ngix/sites-available`.
2024-10-18 04:19:53 -06:00
Link the site to the sites-enabled folder. `ln -sf /etc/nginx/sites-available/myrient-search /etc/nginx/sites-enabled/myrient-search`
## nginx Site Template
```
server {
listen 80;
listen [::]:80;
server_name server address.tld
root /usr/share/nginx
access_log on;
}
#server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name serveraddress.tld;
access_log on;
root /usr/share/nginx;
location / {
add_header Cache-Control no-cache;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8062/;
}
}
```
## SSL Certificate
For the SSL certificate you can use certbot via the `certbot -d servername.tld` command and adding it to your `crontab`.
[Additional Information for Certbot Setup](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04)