Home

The net/vger port

vger-2.0.1 – gemini server written in C used with inetd (cvsweb github mirror)

Description

Vger is a gemini server supporting chroot, virtualhosts,
CGI, default language choice, redirections and MIME types
detection.

Vger design is relying on inetd and a daemon to take care of
TLS.  The idea is to delegate TLS and network to daemons
which proved doing it correctly, so vger takes its request
from stdin and output the result to stdout.
WWW: https://tildegit.org/solene/vger/

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.

Maintainer

Florian Viehweger

Categories

net

Files

Search