aboutsummaryrefslogtreecommitdiff
path: root/gmid.1
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-05-24 09:07:28 +0000
committerOmar Polo <op@omarpolo.com>2021-05-24 09:07:28 +0000
commit8ff40039e885f6ba64c887f390daf7e7f3bc2ff8 (patch)
treeb481457bf10582a04b3ec106fb651b600f18479c /gmid.1
parentce2c9edbc230a052627540e3fd0f8a8b190be850 (diff)
document `fastcgi' config option
Diffstat (limited to 'gmid.1')
-rw-r--r--gmid.126
1 files changed, 24 insertions, 2 deletions
diff --git a/gmid.1 b/gmid.1
index f1f1fb6..70795b3 100644
--- a/gmid.1
+++ b/gmid.1
@@ -35,8 +35,8 @@
.Ek
.Sh DESCRIPTION
.Nm
-is a simple and minimal gemini server that can serve static files and
-execute CGI scripts.
+is a simple and minimal gemini server that can serve static files,
+execute CGI scripts and talk to FastCGI applications.
It can run without a configuration file with a limited set of features
available.
.Pp
@@ -257,6 +257,28 @@ to
.Ar value
when executing CGI scripts.
Can be provided more than once.
+.\" don't document the "spawn <prog>" form because it probably won't
+ \" be kept.
+.It Ic fastcgi Oo Ic tcp Oc Pa socket Oo Ar port Oc
+Enable FastCGI instead of serving files.
+The
+.Pa socket
+can either be a UNIX domain socket or a TCP socket.
+If the FastCGI application is listening on a UNIX domain socket,
+.Pa socket
+is a local path name within the
+.Xr chroot 2
+root directory of
+.Nm .
+Otherwise, the
+.Ic tcp
+keyword must be provided and
+.Pa socket
+is interpreted as a hostname or an IP address.
+.Ar port
+can be either a port number or the name of a service enclosed in
+double quotes.
+If it's not specified defaults to 9000.
.It Ic index Ar string
Set the directory index file.
If not specified, it defaults to