💾 Archived View for gmn.clttr.info › sources › geminispace.info.git captured on 2023-04-26 at 13:16:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

➡️ Next capture (2023-06-14)

-=-=-=-=-=-=-

git clone git://git.clttr.info/geminispace.info.git

commits/

refs/

tree/

Gemini Universal Search (GUS)

Dependencies

Install the following packages

poetry

basic setup

1. Create a user who should run the service, e.g. `gus`

2. Clone this repo to a directory of your choice

3. Run `poetry install` in this directory

Making an initial index

Make sure you have some gemini URLs for testing which are nicely sandboxed to avoid indexing huge parts of the gemini space.

1. Create a "seed-requests.txt" file with your test gemini URLs

2. Run `poetry run crawl -d` (might take a few hours)

3. Run `poetry run build_index -d`

Now you'll have created `index.new` directory, rename it to `index`.

Running the frontend

1. Run `poetry run serve`

2. Navigate your gemini client to: "gemini://localhost/"

Running the frontend in production with systemd

1. Create a private key and TLS certificate (X.509 v3) for your host

2. Update `infra/gus.service` to match your needs:

* working directory

* domain

* certificate files

3. Copy `infra/gus.service` to `~/.config/systemd/user/`

4. Run the following commands to automatically start the daemon

* `systemctl --user daemon-reload`

* `systemctl --user enable gus`

* `systemctl --user start gus`

5. As root, run `loginctl enable-linger gus`

Running the crawl to update the index

1. Run `poetry run crawl`

2. Run `poetry run build_index`

3. Run `systemctl --user restart gus`

Running the crawl & indexer in production with systemd

1. set up a cron job with the following params: `0 9 * * * <path to your working dir>/infra/update-index.sh <path to your working dir>`

Running the test suite

Run: `poetry run pytest`