mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2024-12-04 14:46:42 -05:00
e77f354ca3
gcc 9.3.0 catches an off-by-one error with strncat in serve_autoindex where it might not write a 0 byte: In function ‘strncat’, inlined from ‘serve_autoindex’ at src/serve.c:60:3: /nix/store/...glibc-2.31-dev/include/bits/string_fortified.h:136:10: error: ‘__builtin___strncat_chk’ specified bound 4097 equals destination size [-Werror=stringop-overflow=] Signed-off-by: William Casarin <jb55@jb55.com> |
||
---|---|---|
doc | ||
include | ||
src | ||
.gitignore | ||
config.ini | ||
config.sh | ||
configure | ||
COPYING | ||
Makefile | ||
README.md |
gmnisrv
gmnisrv is a simple Gemini protocol server.
Installation
Dependencies:
- A C11 compiler and a POSIX-like system
- OpenSSL
- scdoc (optional)
$ mkdir build
$ cd build
$ ../configure --prefix=/usr
$ make
# make install
Configuration
By default it reads from /etc/gmnisrv.ini
, but this can be changed by passing
the -C
flag to the gmnisrv
daemon. A sample config.ini is provided at
/usr/share/gmnisrv/gmnisrv.ini
:
# Space-separated list of hosts
listen=0.0.0.0:1965 [::]:1965
[:tls]
# Path to store certificates on disk
store=/var/lib/gemini/certs
# Optional details for new certificates
organization=gmnisrv user
[example.org]
root=/srv/gemini/example.org
[example.com]
root=/srv/gemini/example.com
For full details on gmnisrv configuration, consult the gmnisrv(5) manual page.
Usage
See gmnisrv(1).