summaryrefslogtreecommitdiff
path: root/spacebeans.conf.example
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-02-25 22:08:51 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-02-25 22:11:22 +0000
commit26f9cb8e66e836607851aab623223aef478f3b27 (patch)
tree3e2c5449c8a7a80b912641da1b144d5169aab912 /spacebeans.conf.example
downloadspacebeans-26f9cb8e66e836607851aab623223aef478f3b27.tar.gz
spacebeans-26f9cb8e66e836607851aab623223aef478f3b27.zip
Initial public dump
Diffstat (limited to 'spacebeans.conf.example')
-rw-r--r--spacebeans.conf.example51
1 files changed, 51 insertions, 0 deletions
diff --git a/spacebeans.conf.example b/spacebeans.conf.example
new file mode 100644
index 0000000..e2d586b
--- /dev/null
+++ b/spacebeans.conf.example
@@ -0,0 +1,51 @@
+// SpaceBeans gemini server configuration
+
+// listening address/port
+address = "127.0.0.1"
+port = 1965
+
+// how long until an idle connection is closed
+idle-timeout = "10 seconds"
+
+// default MIME type if detection fails
+default-mime-type = "text/plain"
+
+// by default a built-in resolver is used;
+// use this to define your own MIME types
+// mime-types = {
+// "text/gemini": [".gmi", ".gemini"]
+// }
+
+// hosts configuration
+virtual-hosts = [
+ {
+ host = "localhost"
+ root = "/var/gemini/localhost/"
+ index-file = "index.gmi"
+
+ directory-listing = true
+
+ // optional parameters for text/gemini
+ // gemini-params = "charset=utf-8; lang=en"
+
+ // comment out to use an auto-generated self-signed certificate
+ key-store {
+ path = "/path/to/keystore.jks"
+ alias = "localhost"
+ password = "secret"
+ }
+ }
+]
+
+// SSL support
+gen-cert-valid-for = "365 days"
+enabled-protocols = [ "TLSv1.2", "TLSv1.3" ]
+enabled-cipher-suites = [
+ "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
+ "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
+ "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
+ "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
+ "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384",
+ "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
+]
+