aboutsummaryrefslogtreecommitdiff
path: root/gmid.conf.5
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-25 20:07:26 +0000
committerOmar Polo <op@omarpolo.com>2023-07-25 20:07:26 +0000
commitabd261d25bdfa01c44d07a9803db669bc62ddf76 (patch)
treeb7138101f8d0cb2b2fe64eea13c35f3b1a0a3a1b /gmid.conf.5
parent2a28b0442431d06f1989c9c4861c442bca5c7dcf (diff)
allow to change the logging style; introduce some new ones
add `log style <style>'; The old default is called `legacy' now, a new default format is added called `condensed', and `common' and `combined' to mimick Apache httpd and nginx (respectively) are also added.
Diffstat (limited to 'gmid.conf.5')
-rw-r--r--gmid.conf.545
1 files changed, 45 insertions, 0 deletions
diff --git a/gmid.conf.5 b/gmid.conf.5
index a3c1b60..58999ba 100644
--- a/gmid.conf.5
+++ b/gmid.conf.5
@@ -142,6 +142,51 @@ Log the requests to
.Ar file .
The path is relative to the
.Ic chroot .
+.It Ic style Ar style
+Set the logging style, defaults to
+.Ic condensed .
+The
+.Ar style
+can be one of:
+.Bl -tag -width Ds
+.It Ic common
+Attempt to be compatible with the default Apache httpd log format.
+Each line is formatted as follows: the matching host name,
+the remote IP address, one dash
+.Sq - ,
+Common Name of the client certificate
+.Pq if provided, '-' otherwise ,
+the timestamp of the request, the request URI wrapped in double quotes,
+the response code and the size of the response.
+.It Ic combined
+Attempt to be compatible with the default nginx log format.
+Each line is formatted as follows: the remote IP address, one dash
+.Sq - ,
+Common Name of the client certificate
+.Pq if provided, '-' otherwise ,
+the timestamp wrapped in square brackets, the request URI wrapped in
+double quotes, the response code, the size of the response, a dash
+wrapped in double quotes and "".
+The strangness of these two last fields is because Gemini doesn't have
+the notion of the
+.Dq Referer
+header nor the
+.Dq User-agent .
+.It Ic condensed
+The native
+.Xr gmid 8
+format since 2.0.
+Each line is formatted as follows: RFC 3339 date time,
+remote IP address, Common Name of the client certificate
+.Pq if provided, '-' otherwise ,
+the matching host name, the request URI, the size of the response,
+the response code and meta.
+.It Ic legacy
+The pre-2.0 gmid native format.
+Each line is formatted as follows: the remote IP address and port, the
+.Sq GET
+keyword, the request URI, the response code and meta.
+.El
.El
.It Ic prefork Ar number
Run the specified number of server processes.