aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-22 08:35:04 +0000
committerFuwn <[email protected]>2021-07-22 08:35:04 +0000
commit41c5f925637d76ff3900a486e0d966522003fa63 (patch)
tree4bd7d9c2d00b162c66eb3dafd248156388490ea0
parentChange bindIfEnv's name to something less generic (diff)
downloadcapybara-41c5f925637d76ff3900a486e0d966522003fa63.tar.xz
capybara-41c5f925637d76ff3900a486e0d966522003fa63.zip
chore(global): branding
-rw-r--r--README.md38
-rw-r--r--README.rst44
-rw-r--r--go.mod2
-rw-r--r--main.go2
4 files changed, 46 insertions, 40 deletions
diff --git a/README.md b/README.md
deleted file mode 100644
index f0851f3..0000000
--- a/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# kineto
-
-This is an [HTTP][http] to [Gemini][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.
-
-[http]: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
-[gemini]: https://gemini.circumlunar.space/
-
-## 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.
-
-![](https://l.sr.ht/_frS.jpeg)
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..af10d24
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,44 @@
+Capybara
+========
+
+This is an `HTTP <https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol>`__ to `Gemini <https://gemini.circumlunar.space/>`__ 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
+-----
+
+.. code-block:: shell
+
+ $ go build
+ $ ./capybara [-b 127.0.0.1:8080] [-s style.css] [-e style.css] gemini://fuwn.space
+
+-b
+~~
+
+The -b argument is optional and allows you to bind to an arbitrary address; by
+default Capybara will bind to :code:`:8080`. You should set up some external reverse
+proxy like nginx to forward traffic to this port and add TLS.
+
+-s
+~~
+
+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 :code:`<style>`
+block. By default Capybara will serve its built-in style.
+
+-e
+~~
+
+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 :code:`<link rel="stylesheet"...>` instead of being placed inline with the body
+in a :code:`<style>` block like with the -s flag. The given stylesheet can be a
+relative link, for instance :code:`-e /main.css` will serve :code:`main.css` from the root
+of the proxied Gemini capsule.
+
+License
+~~~~~~~
+
+`GNU General Public License v3.0 <./LICENSE>`__
diff --git a/go.mod b/go.mod
index dd7dcaf..2b3341a 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module git.sr.ht/~sircmpwn/kineto
+module github.com/fuwn/capybara
go 1.15
diff --git a/main.go b/main.go
index dbfce45..b6d4ebf 100644
--- a/main.go
+++ b/main.go
@@ -215,7 +215,7 @@ var gemtextPage = template.Must(template.
<dt>Meta</dt>
<dd>{{.Resp.Meta}}</dd>
<dt>Proxied by</dt>
- <dd><a href="https://sr.ht/~sircmpwn/kineto">kineto</a></dd>
+ <dd><a href="https://github.com/fuwn/capybara">Capybara</a></dd>
</dl>
<p>Be advised that no attempt was made to verify the remote SSL certificate.
</details>