2020-04-13 13:25:14 -04:00
|
|
|
.Dd April 13, 2020
|
2022-01-21 11:44:53 -05:00
|
|
|
.Dt GOPHERNICUS 8
|
2020-04-13 13:25:14 -04:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm gophernicus
|
|
|
|
.Nd A modern, full-featured and secure gopher server
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl h Ar hostname
|
|
|
|
.Op Fl p Ar port
|
|
|
|
.Op Fl r Ar port
|
|
|
|
.Op Fl t Ar type
|
|
|
|
.Op Fl g Ar mapfile
|
|
|
|
.Op Fl a Ar tagfile
|
|
|
|
.Op Fl c Ar dir
|
|
|
|
.Op Fl u Ar dir
|
|
|
|
.Op Fl l Ar file
|
|
|
|
.Op Fl w Ar width
|
|
|
|
.Op Fl o Ar charset
|
|
|
|
.Op Fl s Ar seconds
|
|
|
|
.Op Fl i Ar hits
|
|
|
|
.Op Fl k Ar KiB
|
|
|
|
.Op Fl e Ar ext Ns = Ns Ar type Oo Fl e Ar ext Ns = Ns Ar type Oc ...
|
|
|
|
.Op Fl R Ar old Ns = Ns Ar new Oo Fl R Ar old Ns = Ns Ar new Oc ...
|
|
|
|
.Op Fl D Ar text
|
|
|
|
.Op Fl L Ar text
|
|
|
|
.Op Fl U Ar paths
|
|
|
|
.Op Fl nv
|
|
|
|
.Op Fl nl
|
|
|
|
.Op Fl nh
|
|
|
|
.Op Fl nf
|
|
|
|
.Op Fl nd
|
|
|
|
.Op Fl nc
|
|
|
|
.Op Fl no
|
|
|
|
.Op Fl nq
|
|
|
|
.Op Fl ns
|
|
|
|
.Op Fl na
|
|
|
|
.Op Fl nt
|
|
|
|
.Op Fl nm
|
|
|
|
.Op Fl nr
|
|
|
|
.Op Fl np
|
|
|
|
.Op Fl nx
|
|
|
|
.Op Fl nu
|
|
|
|
.Op Fl nH
|
|
|
|
.Op Fl d
|
|
|
|
.Op Fl b
|
|
|
|
.Op Fl \&?
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2022-01-21 11:44:53 -05:00
|
|
|
is a gopher server.
|
|
|
|
It serves almost compliant RFC 1436, with small changes to make it more
|
|
|
|
modern.
|
2020-04-13 13:25:14 -04:00
|
|
|
.Nm
|
2022-01-21 11:44:53 -05:00
|
|
|
supports userdirs, executable gophermaps, CGI, and virtual hosting
|
|
|
|
.Pq in the limits of the RFC .
|
2020-04-13 13:25:14 -04:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
can log to
|
|
|
|
.Xr syslog 3
|
|
|
|
or per-server files in Apache format.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Dssmacro=value
|
|
|
|
.It Fl h Ar hostname
|
|
|
|
Changes the server hostname shown on the output menu.
|
|
|
|
The default is the fully qualified domain name of the machine.
|
|
|
|
.It Fl p Ar port
|
|
|
|
Changes the server port shown on the output menu.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 70.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl T Ar port
|
|
|
|
Changes the SSL/TLS port.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 0 (disabled).
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl r Ar directory
|
|
|
|
Set the document root of the server.
|
|
|
|
The default is
|
|
|
|
.Pa /var/gopher .
|
|
|
|
.It Fl t Ar type
|
|
|
|
Set the default gopher filetype.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 0.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl g Ar mapfile
|
|
|
|
Set the gophermap file name.
|
|
|
|
The default is
|
|
|
|
.Pa gophermap .
|
|
|
|
.It Fl a Ar tagfile
|
|
|
|
Set the gophertag file name.
|
|
|
|
The default is
|
|
|
|
.Pa gophertag .
|
|
|
|
.It Fl c Ar directory
|
|
|
|
Set the CGI script directory, under the document root.
|
|
|
|
The default is
|
|
|
|
.Pa /cgi-bin/ .
|
|
|
|
.It Fl u Ar directory
|
|
|
|
Set the name of the personal gopherspace directory.
|
2022-01-21 12:06:03 -05:00
|
|
|
Each user can deploy a personal gopherspace by creating
|
2022-01-21 11:50:52 -05:00
|
|
|
.Ar directory
|
2020-04-13 13:25:14 -04:00
|
|
|
in their home directory.
|
|
|
|
The default is
|
|
|
|
.Pa public_gopher .
|
|
|
|
.It Fl l Ar file
|
|
|
|
Log to
|
2022-01-21 11:50:52 -05:00
|
|
|
.Ar file
|
2022-01-21 11:44:53 -05:00
|
|
|
in Apache-compatible combined format.
|
|
|
|
Disabled by default.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl w Ar width
|
|
|
|
Set default page width.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 67.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl o Ar charset
|
2022-01-21 11:44:53 -05:00
|
|
|
Select the output charset.
|
|
|
|
It can be one of
|
2020-04-13 13:25:14 -04:00
|
|
|
.Ar UTF-8 ,
|
|
|
|
.Ar US-ASCII ,
|
|
|
|
or
|
|
|
|
.Ar ISO-9959-1 .
|
|
|
|
The default is
|
|
|
|
.Ar UTF-8 .
|
|
|
|
.It Fl s Ar seconds
|
|
|
|
Session timeout in seconds.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 1800.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl i Ar hits
|
|
|
|
Maximum hits until throttling.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 4069.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl k Ar kilobytes
|
|
|
|
Maximum transfer size in KiB until throttling.
|
2022-01-21 11:50:52 -05:00
|
|
|
The default is 4194304 (4 GiB).
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl f Ar directory
|
|
|
|
Set directory where output filters are found.
|
|
|
|
Disabled by default.
|
|
|
|
.It Fl e Ar ext Ns = Ns Ar type
|
|
|
|
Map file extension
|
|
|
|
.Ar ext
|
|
|
|
to gopher filetype
|
|
|
|
.Ar type .
|
|
|
|
.It Fl R Ar old Ns = Ns Ar new
|
|
|
|
Rewrite the start of a selector.
|
|
|
|
.It Fl D Ar description
|
|
|
|
Set server description to appear in
|
|
|
|
.Pa /caps.txt .
|
|
|
|
If
|
|
|
|
.Ar description
|
|
|
|
looks like a filename (starts with a /), use the contents of the file.
|
|
|
|
.It Fl L Ar location
|
|
|
|
Set server location to appear in
|
|
|
|
.Pa /caps.txt .
|
|
|
|
If
|
|
|
|
.Ar location
|
|
|
|
looks like a filename (starts with a /), use the contents of the file.
|
|
|
|
.It Fl A Ar email
|
|
|
|
Set the email of the administrator to appear in
|
|
|
|
.Pa /caps.txt .
|
|
|
|
.It Fl U Ar paths
|
|
|
|
Set a colon-separated list of extra
|
|
|
|
.Xr unveil 2
|
2022-01-21 11:44:53 -05:00
|
|
|
paths
|
|
|
|
.Pq only for Ox .
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl nv
|
|
|
|
Disable virtual hosting.
|
|
|
|
.It Fl nl
|
|
|
|
Disable parent directory links.
|
|
|
|
.It Fl nh
|
|
|
|
Disable menu header.
|
|
|
|
.It Fl nf
|
|
|
|
Disable menu footer.
|
|
|
|
.It Fl nd
|
|
|
|
Don't show date and size of files in menu.
|
|
|
|
.It Fl nc
|
|
|
|
Disable file content detection (similar to
|
|
|
|
.Xr magic 5 Ns ).
|
|
|
|
.It Fl no
|
|
|
|
Disable output charset conversion.
|
|
|
|
.It Fl nq
|
|
|
|
Disable HTTP-style query strings
|
|
|
|
.Ql ?foo=bar&baz=quux .
|
|
|
|
.It Fl ns
|
|
|
|
Disable logging to
|
|
|
|
.Xr syslog 3 .
|
|
|
|
.It Fl na
|
|
|
|
Disable autogenerated
|
|
|
|
.Pa /caps.txt .
|
|
|
|
.It Fl nt
|
|
|
|
Disable
|
|
|
|
.Pa /server-status .
|
|
|
|
.It Fl nm
|
|
|
|
Disable shared memory use (for debugging purposes).
|
|
|
|
.It Fl nr
|
|
|
|
Disable root user check (for debugging purposes).
|
|
|
|
By default,
|
|
|
|
.Nm
|
|
|
|
will refuse to run as root.
|
|
|
|
.It Fl np
|
|
|
|
Disable HAProxy proxy protocol.
|
2022-01-21 11:36:24 -05:00
|
|
|
.It Fl nu
|
|
|
|
Disable personal gopherspaces.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl nx
|
|
|
|
Disable execution of gophermaps and scripts.
|
|
|
|
.It Fl nH
|
|
|
|
Disable HTTP response to HTTP GET and POST requests.
|
|
|
|
.It Fl d
|
|
|
|
Print debug output in
|
|
|
|
.Xr syslog 3
|
|
|
|
and
|
|
|
|
.Pa /server-status .
|
2020-04-24 17:13:34 -04:00
|
|
|
When
|
|
|
|
.Fl ns
|
|
|
|
(disable
|
|
|
|
.Xr syslog 3 )
|
|
|
|
is used this option has no effect.
|
2020-04-13 13:25:14 -04:00
|
|
|
.It Fl v
|
|
|
|
Display version information and build date.
|
|
|
|
.It Fl b
|
|
|
|
Display licensing information.
|
|
|
|
.It Fl \&?
|
|
|
|
Display help.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Default values may have been changed at compile time by
|
|
|
|
.Pa gophernicus.env .
|
|
|
|
.Sh STANDARDS
|
|
|
|
.Nm
|
|
|
|
mostly conforms to
|
|
|
|
.Lk https://tools.ietf.org/html/rfc1436 "RFC 1436"
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
2022-01-21 11:44:53 -05:00
|
|
|
.An Kim Holviala
|
2020-04-13 13:25:14 -04:00
|
|
|
wrote the original implementation (2009\(en2018).
|
|
|
|
.Pp
|
|
|
|
.An fosslinux
|
|
|
|
and
|
|
|
|
.An hb9kns
|
|
|
|
are the current maintainers (2019\(en).
|
|
|
|
.Pp
|
|
|
|
Code contributed by others.
|
|
|
|
.Pp
|
|
|
|
Developers can be reached at
|
|
|
|
.Mt gophernicus.AT.gophernicus.DOT.org
|
|
|
|
.Sh BUGS
|
|
|
|
Known bugs are listed as issues on
|
|
|
|
.Nm Ap s GitHub page:
|
|
|
|
.Lk https://github.com/gophernicus/gophernicus/issues
|
|
|
|
.Pp
|
|
|
|
Please report any bug you might experience there as well.
|
|
|
|
.Sh COPYRIGHT
|
|
|
|
Copyright \(co
|
|
|
|
.An Kim Holviala
|
|
|
|
2009\(en2018.
|
|
|
|
.Pp
|
|
|
|
Copyright \(co
|
2022-01-21 11:44:53 -05:00
|
|
|
.An gophernicus developers
|
2020-04-13 13:25:14 -04:00
|
|
|
2019.
|
|
|
|
.Pp
|
|
|
|
Licensed to you under the terms of the BSD 2-clause license.
|
|
|
|
Please see
|
|
|
|
.Pa LICENSE
|
|
|
|
for the full terms of the license.
|