don't mention the `map' rule anymore: `types' is way better

This commit is contained in:
Omar Polo 2022-04-07 16:12:58 +00:00
parent 381fccdc56
commit 4ee085938f
1 changed files with 5 additions and 11 deletions

16
gmid.1
View File

@ -241,12 +241,6 @@ Future version of
may enforce this. may enforce this.
.It Ic ipv6 Ar bool .It Ic ipv6 Ar bool
Enable or disable IPv6 support, off by default. Enable or disable IPv6 support, off by default.
.It Ic map Ar mime-type Cm to-ext Ar file-extension
Map
.Ar mime-type
to the given
.Ar file-extension .
Both argument are strings.
.It Ic port Ar portno .It Ic port Ar portno
The port to listen on. The port to listen on.
1965 by default. 1965 by default.
@ -674,8 +668,6 @@ will be used, or
.Pp .Pp
By default the following mappings are loaded, but they can be By default the following mappings are loaded, but they can be
overridden or extended using the overridden or extended using the
.Ic map
option or the
.Ic type Brq ... .Ic type Brq ...
block. block.
.Pp .Pp
@ -772,15 +764,17 @@ In the example above, a certificate is valid for one hundred years from
the date it was created, which is normal for TOFU. the date it was created, which is normal for TOFU.
.Pp .Pp
The following is an example of a possible configuration for a site The following is an example of a possible configuration for a site
that enables only TLSv1.3, adds a mime type for the file extension that enables only TLSv1.3, adds the MIME types mapping from
.Qq rtf .Pa /usr/share/misc/mime.types
and defines two virtual host: and defines two virtual host:
.Bd -literal -offset indent .Bd -literal -offset indent
ipv6 on # enable ipv6 ipv6 on # enable ipv6
protocols "tlsv1.3" protocols "tlsv1.3"
map "application/rtf" to-ext "rtf" types {
include "/usr/share/misc/mime.types"
}
server "example.com" { server "example.com" {
cert "/etc/ssl/example.com.crt" cert "/etc/ssl/example.com.crt"