diff options
author | jake <jake@jakes-mail.top> | 2022-08-13 05:48:18 -0400 |
---|---|---|
committer | jake <jake@jakes-mail.top> | 2022-08-13 05:48:18 -0400 |
commit | 398ee699343b94a1538d1c486330966707865878 (patch) | |
tree | 102b4ae2d44ed208d93eec5e7c3c508c9c0673c8 /config.toml.sample | |
parent | 0b8665b5371d696e9a447eacfccfca0b434ef354 (diff) |
Actually useable now
Diffstat (limited to 'config.toml.sample')
-rw-r--r-- | config.toml.sample | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/config.toml.sample b/config.toml.sample new file mode 100644 index 0000000..5cd6c63 --- /dev/null +++ b/config.toml.sample @@ -0,0 +1,63 @@ +[default] +# only one bind addr for now. +bind = '0.0.0.0' +# only one port for now. +ports = [1965] +# Can specify one or both of these. +tls = ['v1.2', 'v1.3'] + +## The following options are specific to default and will not work with vhost +# Working dir is used as a relative location if a 'pathy' option (like log_file) is not absolute. +# If working_dir does not have a path, then the *current working directory* is the used. +working_dir = "/etc/jakes-gemini-server" # avoid putting final '/' +# Unless path is absolute, it is relative to working_dir +log_file = "jakes-gemini-server.log" +# if log_to_stdout is true then log_file is ignored and the 'log' is printed (almost unbuffered) to stdout. +log_to_stdout = true +# Unless path is absolute, it is relative to working_dir. +# If this is not specified then it will place it in certs dir (and create the directory if needed, maybe not with the best permissions) +cert_key_dir = "certs" # avoid putting final '/' + +## These are not specific to default and can be used with vhost +## Vhost options will override default options +# Default document root, when a vhost has none of its own. +root = "default_root" +# append 'index.gmi' when the path ends with '/' or is nothing +assume_index = true +# list the contents of a directory if no index.gmi is found and request is a directory? +dir_listing = false +# otherwise the fallback is 'application/octet-stream' (gemini is primary text based so 'octet-stream' probably not wanted) +default_mime = 'text/plain' + +### Not implimented yet +# similar to .htaccess, .gmiaccess +#gmi_access = true +# automatically reject access to .gmiaccess +#gmi_access_request_reject = true +# No need for a single config file +#include_configs = ["./sites_enabled"] + +# Vhost example - probably you want to see that it actually works right away +['localhost'] +# Generate certificate and key automatically? Uses cert_key_dir +auto_cert = true + +# Overrides default setting +assume_index = true + +# A more realistic example +#['example.com'] +#auto_cert = false +# Location to the cert/key pair is relative to cert_key_dir unless the path is absolute +# The existance of cert or key option will cause auto_cert to be ignored. +#cert = "cert.pem" # a file +#key = "key.pem" # a file + +# this Vhost's document root +#root = "/srv/gemini/example.com" +# Overrides default setting +#root_relative = false + +#assume_index = true +#dir_listing = true +#default_mime = 'text/plain' |