💾 Archived View for gmn.clttr.info › sources › geminispace.info.git captured on 2024-05-10 at 10:45:43. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-08)
-=-=-=-=-=-=-
git clone git://git.clttr.info/geminispace.info.git
Install the following packages
1. Create a user who should run the service, e.g. `gus`
2. Clone this repo: `git clone https://git.sr.ht/~rwa/geminispace.info geminispace`
3. Run `poetry install` in this directory
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`.
1. Run `poetry run serve`
2. Navigate your gemini client to: "gemini://localhost/"
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`
1. Run `poetry run crawl`
2. Run `poetry run build_index`
3. Run `systemctl --user restart gus`
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>`
Run: `poetry run pytest`