summaryrefslogtreecommitdiff
path: root/config.toml.sample
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-08-15 10:35:28 -0400
committerjake <jake@jakes-mail.top>2022-08-15 10:35:28 -0400
commit8cbc34cc274c6d37baba2ce76757d1411430ebee (patch)
treeb07fd38af33e0a9af7ae49391bf7b081cd52c656 /config.toml.sample
parent9969ee032f73d03ff9dcb5246eced784ce234c87 (diff)
Make fork() toggleable.
Touch up code that exit() - would end server otherwise. Touch up log entries.
Diffstat (limited to 'config.toml.sample')
-rw-r--r--config.toml.sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.toml.sample b/config.toml.sample
index 3552ae3..ca6313f 100644
--- a/config.toml.sample
+++ b/config.toml.sample
@@ -21,6 +21,10 @@ cert_key_dir = "certs" # avoid putting final '/'
# because generating cert/key pairs will fail and cause the program to die.
# Setting the following to 'false' will not emit an error.
cert_key_dir_write_warning = true
+# For each accepted connection a fork() is called. This toggles if that should happen or not.
+# For debugging or memory reasons, it may help to set this to false, though it may result in clients timing out if your server is busy serving a client.
+# Will cause 'timed-out' and 'sysread failed' to appear at the same time in log files.
+fork = true
## These are not specific to default and can be used with vhost
## Vhost options will override default options
@@ -43,6 +47,8 @@ default_mime = 'text/plain'
# A Vhost is *required* since it both serves as vhost and server name identification (sni)
# Vhost example - probably you want to see that it actually works right away
+# `$ ncat --ssl localhost 1965'. Quick! You have 5 seconds! type: 'gemini://localhost ' (don't forget the whitespace as required by gemini spec)
+# (ncat (probably) packaged with nmap)
['localhost']
# Generate certificate and key automatically? Uses cert_key_dir
auto_cert = true