lk/networking/servers/agate.md

59 lines
1.1 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "agate"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "Networking" ]
2022-01-16 18:20:39 +00:00
---
2021-02-24 03:50:05 +00:00
Make sure your dns is in order.
2022-02-05 17:20:55 +00:00
My domain name is `malinfreeborn.com`, so put your own in there.
2021-02-24 03:50:05 +00:00
Install agate by placing the binary somewhere or (on Arch):
> yay -S agate
---
> sudo mkdir -p /usr/share/gemini/{certs,gemini}
> sudo useradd gemini -d /usr/share/gemini
> sudo chown -R gemini:gemini /usr/share/gemini
> sudo su gemini
> cd
> echo 'Hello Gemworld!' > gemini/index.gmi
Make a service file.
> sudo vim /etc/systemd/system/multi-user.target.wants/agate.service
2022-02-05 17:20:55 +00:00
Start agate once to make the certificates.
> agate --content /usr/share/gemini/gemini --hostname malinfreeborn.com --lang en-GB
2021-02-24 03:50:05 +00:00
```
[Unit]
Description=agate
2022-01-26 22:35:07 +00:00
After=Network.target
2021-02-24 03:50:05 +00:00
[Service]
User=gemini
Type=simple
2022-02-05 17:20:55 +00:00
ExecStart=/usr/bin/agate --content /usr/share/gemini/gemini --hostname malinfreeborn.com --lang en-GB
2021-02-24 03:50:05 +00:00
[Install]
WantedBy=default.target
```
> sudo systemctl daemon-reload
> sudo systemctl enable --now agate
2023-04-17 07:16:03 +00:00
# Redirection
Indicate a permanent move by placing this file in the root of the capsule:
> index.gmi: 31 gemini://splint.rs