openbsd-ports/net/vger/pkg
op 066bbaec13 update net/vger to 1.10
diff from Florian with some tweaks by me:

 - don't @owner/@group /var/gemini to _vger
 - tweak the README

discussed with and ok solene@, ok Florian Viehweger (MAINTAINER)
2022-04-25 19:35:59 +00:00
..
DESCR
PLIST
README

+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

Configuring inetd(8) and relayd(8)
==================================

Vger is meant to be run run by inetd(8) behind a relay daemon offering
TLS capabilities like relayd(8).

sample inetd.conf
-----------------

	127.0.0.1:11965 stream tcp nowait _vger ${TRUEPREFIX}/bin/vger vger

sample relayd.conf
------------------

	log connection

	tcp protocol "gemini" {
		tls keypair hostname.example
	}

	relay "gemini" {
		listen on hostname.example port 1965 tls
		protocol "gemini"
		forward to 127.0.0.1 port 11965
	}

Then enable and start inetd and relayd:

    # rcctl enable relayd inetd
    # rcctl start relayd inetd

Firewall configuration
======================

Allow TCP traffic on port 1965.

Usage
=====

Vger will serve files named index.gmi if no explicit filename is given.
If this file doesn't exist and auto index is enabled, an index file
with a link to every file in the directory will be served.