aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYotam Nachum <me@yotam.net>2019-11-22 17:34:34 +0200
committerYotam Nachum <me@yotam.net>2019-11-22 17:34:34 +0200
commit84a7795be4868016f15d012b1f597f02a272f6fa (patch)
tree470a490915504aeaeae8a3378424a057d64b23aa
parentAdd more tools to CI linting (diff)
downloadshavit-84a7795be4868016f15d012b1f597f02a272f6fa.tar.gz
shavit-84a7795be4868016f15d012b1f597f02a272f6fa.zip
Add a README to explain how to use the server
-rw-r--r--README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..06b27e7
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# Go Gemini Server
+
+This is a yet to be named configurable Gemini server for UNIX operating systems.
+The server is in a very early state and can only serve static files but in the
+near future it will support dynamically generated files like a search endpoints
+and an Atom feed.
+
+## Building
+
+The server is written in Go so to build it you only need to run one command:
+
+ go build
+
+This will produce a binary named `go-gemini-server` that you can run.
+
+## Running
+
+After you have compiled the server you need to configure it before it will run.
+The server expect a configuration file in `/etc/gemini/config.toml` that contain
+a path to the documents directory and the certificate files. A simple
+configuration file might look like this:
+
+ source = "/var/gemini/docs"
+ tls_certificate = "/var/gemini/server.crt"
+ tls_key = "/var/gemini/server.key"
+
+With this configuration file the server will look for a certificate and key in
+`/var/gemini` and for documents in `/var/gemini/docs`.