2 .\" Copyright (c) 2022 Omar Polo
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 .Dd September 14, 2022
20 .Nd galileo configuration file
23 is the run-time configuration file for
26 The file format is line-based, with one configuration directive per line.
27 Any lines beginning with a
29 are treated as comments and ignored.
30 .Sh GLOBAL CONFIGURATION
31 The available global configuration directives are as follows:
38 .It Ic prefork Ar number
39 Specify the number of proxy processes.
41 .Sh SERVER CONFIGURATION
42 At least one server context must exist for
46 A server context is declared with a unique
48 followed by server-specific configuration directive inside curly braces:
50 .Ic server Ar name Brq ...
52 The available server configuration directives are as follows:
55 Define the proxy configuration for the matching host.
56 The available proxy configuration directives are as follows:
58 .It Ic source Ar address Ic port Ar port
64 .It Ic hostname Ar name
67 used for SNI and the Gemini request.
69 .It Ic stylesheet Ar path
70 Specify the path to the stylesheet linked in the generated HTML.
73 .Bl -tag -width Ds -compact
74 .It Pa /etc/galileo.conf
75 Default location of the
80 The following example will proxy the Gemini capsule
81 .Sq gemini://gemini.example.com
83 .Sq https://www.example.com
85 assuming a Gemini server is listening on 127.0.0.1:
86 .Bd -literal -offset indent
87 server "www.example.com" {
89 source 127.0.0.1 port 1965
90 hostname "gemini.example.com"
92 stylesheet "/galileo.css"
96 The matching configuration for
99 .Bd -literal -offset indent
100 server "www.example.com" {
102 listen on * tls port 443
104 certificate "/etc/ssl/example.com.fullchain.pem"
105 key "/etc/ssl/private/example.com.key"
107 location "/.well-known/acme-challenge/*" {
111 location "/galileo.css" {
115 fastcgi socket "/run/galileo.sock"