diff options
Diffstat (limited to 'config.toml.sample')
-rw-r--r-- | config.toml.sample | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/config.toml.sample b/config.toml.sample index adcc44b..fea0fb5 100644 --- a/config.toml.sample +++ b/config.toml.sample @@ -1,8 +1,11 @@ [default] -# only one bind addr for now. -bind = '0.0.0.0' -# only one port for now. -ports = [1965] +# Can be more than one bind, however beware: +# '::' and/or '0.0.0.0' is a 'bind' to all ('::' seems to work for IPv4 as well) - vhost with their own bind and the same ports will result in an error. +# 'Address already in use' or something similar. +# To bind to more than one address, make the value an array ie: ['192.168.0.24', '10.0.1.1'] +bind = '::' +# To bind to more than one port, make the value an array ie: [1965, 1966, 1967] +ports = 1965 # Can specify one or both of these. tls = ['v1.2', 'v1.3'] @@ -22,7 +25,7 @@ cert_key_dir = "certs" # avoid putting final '/' # Setting the following to 'false' will not emit an error. cert_key_dir_write_warning = true # For each accepted connection a fork() is called. This toggles if that should happen or not. -# For debugging or memory reasons, it may help to set this to false, though it may result in clients timing out # if your server is busy serving a client. +# For debugging or memory reasons, it may help to set this to false, though it may result in clients timing out # Will cause 'timed-out' and 'sysread failed' to appear at the same time in log files. fork = true # When the server accept()s the client needs to send, per the Gemini spec: '<URL><CR><LF>' @@ -51,7 +54,7 @@ default_mime = 'text/plain' # A Vhost is *required* since it both serves as vhost and server name identification (sni) # Vhost example - probably you want to see that it actually works right away -# `$ ncat --ssl localhost 1965'. Quick! You have 5 seconds! type: 'gemini://localhost ' (don't forget the whitespace as required by gemini spec) +# `$ ncat --ssl localhost 1965'. Quick! You have 5 seconds! type: 'gemini://localhost ' (don't forget the whitespace) # (ncat (probably) packaged with nmap) ['localhost'] # Generate certificate and key automatically? Uses cert_key_dir @@ -61,6 +64,8 @@ assume_index = true # A more realistic example #['example.com'] +#bind = ['172.16.0.53', '10.43.14.32'] +#ports = [10000,10001,10002] #auto_cert = false # Location to the cert/key pair is relative to cert_key_dir unless the path is absolute # The existance of cert and key option will cause auto_cert to be ignored. |