aboutsummaryrefslogtreecommitdiff
path: root/gmid.1
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-11 16:04:22 +0000
committerOmar Polo <op@omarpolo.com>2021-06-11 16:04:22 +0000
commitada16f8731cf410c30cb6604ae36e4714cb4d1d2 (patch)
tree9c3201f9921a2caf9ff73681b0f141d03f961ae6 /gmid.1
parentc92b802b6a78a4281f66b02d935391086959dc4b (diff)
document fastcgi and the new `param' options
Diffstat (limited to 'gmid.1')
-rw-r--r--gmid.161
1 files changed, 60 insertions, 1 deletions
diff --git a/gmid.1 b/gmid.1
index 70795b3..de69d08 100644
--- a/gmid.1
+++ b/gmid.1
@@ -258,7 +258,7 @@ to
when executing CGI scripts.
Can be provided more than once.
.\" don't document the "spawn <prog>" form because it probably won't
- \" be kept.
+.\" be kept.
.It Ic fastcgi Oo Ic tcp Oc Pa socket Oo Ar port Oc
Enable FastCGI instead of serving files.
The
@@ -310,6 +310,12 @@ section may include most of the server configuration rules
except
.Ic alias , Ic cert , Ic env , Ic key , Ic location ,
.Ic entrypoint No and Ic cgi .
+.It Ic param Ar name Ar value
+Set the param
+.Ar name
+to
+.Ar value
+for FastCGI.
.It Ic root Pa directory
Specify the root directory for this server.
It's relative to the chroot, if enabled.
@@ -411,6 +417,59 @@ The time corresponding to the start of the validity period of the peer
certificate in the ISO 8601 format.
.El
.Pp
+.Sh FastCGI
+.Nm
+optionally supports FastCGI.
+A
+.Ic fastcgi
+rule must be present in a server or location block.
+Then, all requests matching that server or location will be handled
+via the specified FastCGI backend.
+.Pp
+By default the following variables
+.Pq parameters
+are sent, and carry the same semantics as with CGI.
+More parameters can be added with the
+.Ic param
+option.
+.Bl -bullet -compact
+.It
+GATEWAY_INTERFACE
+.It
+GEMINI_URL_PATH
+.It
+QUERY_STRING
+.It
+REMOTE_ADDR
+.It
+REMOTE_HOST
+.It
+REQUEST_METHOD
+.It
+SERVER_NAME
+.It
+SERVER_PROTOCOL
+.It
+SERVER_SOFTWARE
+.It
+AUTH_TYPE
+.It
+REMOTE_USER
+.It
+TLS_CLIENT_ISSUER
+.It
+TLS_CLIENT_HASH
+.It
+TLS_VERSION
+.It
+TLS_CIPHER
+.It
+TLS_CIPHER_STRENGTH
+.It
+TLS_CLIENT_NOT_BEFORE
+.It
+TLS_CLIENT_NOT_AFTER
+.El
.Sh MIME
To auto-detect the MIME type of the response
.Nm