Archived
1
0
Fork
You've already forked ggm
0
Development moved to sourcehut: https://git.sr.ht/~bacardi55/ggm
This repository has been archived on 2024年02月27日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go 87.8%
  • Makefile 12.2%
2022年02月28日 22:36:56 +01:00
.gitignore Initial commit 2022年02月27日 04:13:10 +01:00
ggm.toml.example Initial commit 2022年02月27日 04:13:10 +01:00
go.mod go tidy 2022年02月28日 18:24:27 +01:00
go.sum Initial commit 2022年02月27日 04:13:10 +01:00
LICENSE Initial commit 2022年02月27日 04:10:39 +01:00
main.go Finish fixing formating 2022年02月28日 22:36:20 +01:00
Makefile tag version 0.1.0-beta3 2022年02月28日 22:36:56 +01:00
README.md Fixing readme 2022年02月27日 04:25:58 +01:00

Go Gemini Mention

This is a small program to manage Gemini mention.

WARNING: This is a very beta program to implement the gemini mention RFC, use with caution!

To learn about gemini mention, please see this page.

Installation

Either download the source and run make dependencies && make build, then upload the binary in ./bin/ to your capsule at the /.well-known/mention path (so you need to rename the binary to mention). It must be executable (chmod +x mention).

Or you can download binaries on the release page.

Configuration

You need to create a configuration file at /etc/gogeminimention.toml.

If you wish to use another path, you must configure a environment variable GGM_CONFIG_PATH with the path to your file. This is because a CGI script will not be able to start the program with a cli argument (to override config path).

The config file should be as follow:

# Configuration file for Go Gemini Mention (aka ggm).
# This file should be kept outside of your capsule root to avoid access to it!
# Global configuration
# Capsule root address, without the "gemini://" URL scheme.
# Example: "gmi.bacardi55.io" or "mydomain.com/~user"
capsuleRootAddress = "mydomain.net"
# The maximum number of mentions you would like to see in the notification.
# This will limit the number of requests you send to your own capsule.
# Normally it should be one, but a limit prevent abuse :).
maxMentions = 2
# The email address you want to receive the notification to.
contact = "user@example.com"
# The access to the log file to use:
log = "/tmp/ggm.log"
# Notification configuration
# For now, you need to indicate in clear the login/password.
# It isn't very secure but this is the first pass at this tool :)
# I strongly suggest that you use a dedicated email account for this just in case.
# If gemini mention start to be more used, I'll add a better way.
# The address of the smtp server:
smtpServer = "mail.example.net"
# The port of the smtp server:
port = 587
# The email of the sender (from field):
from = "sender@example.net"
# The login/user (often the email address)
login = ""
# The password for the above user:
password = ""

See an example.