mirror of https://github.com/omar-polo/gmid.git
parent
3e4749f7f9
commit
6980aad6d7
|
@ -27,10 +27,11 @@ in the requests made by clients, so it's impossible to serve content
|
||||||
outside the
|
outside the
|
||||||
*docs*
|
*docs*
|
||||||
directory by mistake.
|
directory by mistake.
|
||||||
Furthermore, on OpenBSD,
|
Furthermore, on
|
||||||
pledge(3)
|
OpenBSD,
|
||||||
|
pledge(2)
|
||||||
and
|
and
|
||||||
unveil(3)
|
unveil(2)
|
||||||
are used to ensure that
|
are used to ensure that
|
||||||
**gmid**
|
**gmid**
|
||||||
dosen't do anything else than read files from the given directory and
|
dosen't do anything else than read files from the given directory and
|
||||||
|
@ -78,7 +79,7 @@ To quickly getting started
|
||||||
EOF
|
EOF
|
||||||
$ gmid -c cert.pem -k key.pem -d docs
|
$ gmid -c cert.pem -k key.pem -d docs
|
||||||
|
|
||||||
now you can visit gemini://localhost/ with your preferred gemini client.
|
now you can visit gemini://localhost/ with your preferred gemini client.
|
||||||
|
|
||||||
# CAVEATS
|
# CAVEATS
|
||||||
|
|
||||||
|
|
11
gmid.1
11
gmid.1
|
@ -40,10 +40,11 @@ in the requests made by clients, so it's impossible to serve content
|
||||||
outside the
|
outside the
|
||||||
.Pa docs
|
.Pa docs
|
||||||
directory by mistake.
|
directory by mistake.
|
||||||
Furthermore, on OpenBSD,
|
Furthermore, on
|
||||||
.Xr pledge 3
|
.Ox ,
|
||||||
|
.Xr pledge 2
|
||||||
and
|
and
|
||||||
.Xr unveil 3
|
.Xr unveil 2
|
||||||
are used to ensure that
|
are used to ensure that
|
||||||
.Nm
|
.Nm
|
||||||
dosen't do anything else than read files from the given directory and
|
dosen't do anything else than read files from the given directory and
|
||||||
|
@ -72,7 +73,7 @@ The key for the certificate, by default is
|
||||||
.El
|
.El
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
To quickly getting started
|
To quickly getting started
|
||||||
.Bd -literal -indent
|
.Bd -literal -offset indent
|
||||||
$ # generate a cert and a key
|
$ # generate a cert and a key
|
||||||
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem \\
|
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem \\
|
||||||
-out cert.pem -days 365 -nodes
|
-out cert.pem -days 365 -nodes
|
||||||
|
@ -82,7 +83,7 @@ $ cat <<EOF > docs/index.gmi
|
||||||
test paragraph...
|
test paragraph...
|
||||||
EOF
|
EOF
|
||||||
$ gmid -c cert.pem -k key.pem -d docs
|
$ gmid -c cert.pem -k key.pem -d docs
|
||||||
.El
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
now you can visit gemini://localhost/ with your preferred gemini client.
|
now you can visit gemini://localhost/ with your preferred gemini client.
|
||||||
.Sh CAVEATS
|
.Sh CAVEATS
|
||||||
|
|
Loading…
Reference in New Issue