1port = 1965 2# use "::" for ipv6 and ipv4 or "0.0.0.0" for ipv4 only 3host = "::" 4# log is optional and server wide. It defaults to info if not set. Other levels 5# are error, warn, and info. If error is set it will only show error. If warn 6# is set it will show error and warn. Info shows all three. 7log = "info" 8 9# There must be at least 1 server tag if a client doesn't send sni the server 10# will use this tag as its default. 11# Server 1 12[[server]] 13hostname = "example.com" 14dir = "/path/to/serv" 15key = "/path/to/key" 16cert = "/path/to/cert" 17# index is optional but defaults to index.gemini. The server will serve files 18# ending in gemini or gmi. 19index = "index.gmi" 20# lang is optional 21lang = "en" 22# cgi is optional bool 23cgi = true 24# cgipath is optional and only checked if cgi is true. It restricts cgi to only 25# this directory. 26cgipath = "/path/to/cgi-bin/" 27# scgi is optional 28scgi = { "/scgi" = "localhost:4000" } 29# cgienv is optional 30cgienv = { "GIT_PROJECT_ROOT" = "/srv/git" } 31# usrdir is optional. it'll look in /home/usr/public_gemini 32usrdir = true 33# proxy is optional 34# path is what comes after the hostname e.g. example.com/path 35proxy = { path = "localhost:1966" } 36# proxy_all is optional 37# It will send all requests to the specified server. It also supports streamming. 38proxy_all = localhost:1967 39# redirect is optional 40redirect = { "/redirect" = "/", "/newdomain" = "gemini://example.net" } 41 42# Server 2 43[[server]] 44hostname = "example.net" 45dir = "/path/to/serv/" 46key = "/path/to/key" 47cert = "/path/to/cert" 48