- Go 55.5%
- CSS 44.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| COPYING | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
| style.css | ||
kineto
Fork notes
This is a fork of kineto. Local changes:
- a favicon link in the page template;
style.css, a stylesheet for use with-s;- a trimmed footer that shows only the original Gemini URL;
- links to other Gemini hosts (
/x/...) are no longer proxied: they return a small page linking to thegemini://URL instead.
Licensed under the GPL-3.0, like upstream; see COPYING.
This is an HTTP to Gemini proxy designed to provide service for a single domain, i.e. to make your Gemini site available over HTTP. It can proxy to any domain in order to facilitate linking to the rest of Geminispace, but it defaults to a specific domain.
Usage
$ go build
$ ./kineto [-b 127.0.0.1:8080] [-s style.css] [-e style.css] gemini://example.org
The -b argument is optional and allows you to bind to an arbitrary address; by
default kineto will bind to :8080. You should set up some external reverse
proxy like nginx to forward traffic to this port and add TLS.
The -s argument is optional and allows you to specify a custom CSS filename.
The given file will be loaded from the local disk and placed in a <style>
block. By default kineto will serve its built-in style.
The -e argument is optional and allows you to specify a custom CSS URL. If
provided, the style.css given will be treated as a link to be put in the href
of a <link rel="stylesheet"...> instead of being placed inline with the body
in a <style> block like with the -s flag. The given stylesheet can be a
relative link, for instance -e /main.css will serve main.css from the root
of the proxied Gemini capsule.
"kineto"?
It's named after the Contraves-Goerz Kineto Tracking Mount, which is used by NASA to watch rockets as they ascend to orbit.
Build and deploy this fork
Use Go 1.27 or newer; go.mod selects Go 1.27.4 for the current security
patches. Validate with go test -race ./..., go vet ./..., and
govulncheck ./..., then build with go build.
On satch, kineto.service runs as gemini from /home/gemini/kineto, with
-s style.css -b 127.0.0.1:8082 gemini://satch.xyz. Nginx serves it at
https://satch.xyz. Fast-forward the clean server checkout, build a temporary
binary, stop the service, install the binary as kineto, and restart. Verify
both localhost:8082 and the public HTTPS endpoint. Preserve the stylesheet,
favicon, and /x/ link pages (external capsules must not be proxied).
