You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
2.6 KiB
TOML
128 lines
2.6 KiB
TOML
# Chroot directory (empty to disable)
|
|
chroot = "/var/gophi"
|
|
|
|
# Server root. If chroot enabled
|
|
# this will be seen as relative to
|
|
# the server chroot
|
|
root = "/"
|
|
|
|
# UNIX user and group names server
|
|
# should run under:
|
|
# - if user supplied but no group, then
|
|
# user's primary group is used
|
|
# - if both are blank, runs as current
|
|
# user
|
|
user = "grufwub"
|
|
group = ""
|
|
|
|
# Server bind address
|
|
listen = "127.0.0.1"
|
|
|
|
# Server hostname
|
|
hostname = "localhost"
|
|
|
|
# Port to listen on
|
|
port = 1024
|
|
|
|
# Enable user server spaces, e.g.
|
|
# ~/public_{gopher,gemini}
|
|
user-spaces = false
|
|
|
|
[connection]
|
|
# Connection read timeout
|
|
read-timeout = "5s"
|
|
|
|
# Connection write timeout
|
|
write-timeout = "15s"
|
|
|
|
# Connection write buffer size (in bytes)
|
|
write-buf = 1024
|
|
|
|
# Connection read max (in bytes), with
|
|
# max read sizes this low we don't bother
|
|
# buffering reads
|
|
read-max = 1024
|
|
|
|
[filesystem]
|
|
# File read buffer size (in bytes)
|
|
read-buf = 1024
|
|
|
|
[filesystem.cache]
|
|
# Filesystem monitor check freq.
|
|
monitor-freq = "60s"
|
|
|
|
# Maximum cached file size (in MB)
|
|
file-max = 1.0
|
|
|
|
# Maximum file age before mark
|
|
# as stale, i.e. safe to be
|
|
# removed on next monitor sweep
|
|
age-max = "5m"
|
|
|
|
# Cache size count
|
|
size= 100
|
|
|
|
[requests]
|
|
# NOTE: please use apostrophe declared
|
|
# strings (i.e. ' not ") otherwise
|
|
# backslashes will need to be escaped
|
|
|
|
# String array of filesystem path
|
|
# regex statements to restrict.
|
|
restrict = [
|
|
'/(.+/)?\.[a-zA-Z0-9-_.]+',
|
|
]
|
|
|
|
# String array of filesystem path
|
|
# regex statements to hide from dir
|
|
# listings
|
|
hidden = [
|
|
'',
|
|
]
|
|
|
|
# String array of request remapping
|
|
# regex statements
|
|
remap = [
|
|
'',
|
|
]
|
|
|
|
[log]
|
|
# Log output locations, options:
|
|
# - stdout -> /dev/stdout
|
|
# - stderr -> /dev/stderr
|
|
# - null -> /dev/null
|
|
# - $file -> $file
|
|
system = "stdout"
|
|
access = "stdout"
|
|
|
|
[cgi]
|
|
# Relative CGI scripts directory
|
|
# path within server root
|
|
directory = "cgi-bin"
|
|
|
|
# CGI environment $PATH
|
|
safe-path = "/bin:/usr/bin"
|
|
|
|
# Gopher specific configuration, uncomment
|
|
# if you have built gophi as a gopher server
|
|
#[gopher]
|
|
# # Page width before line truncation
|
|
# page-width = 80
|
|
#
|
|
# # Footer text included below gophermaps
|
|
# footer = ""
|
|
#
|
|
# # Subgophermap size max (in megabytes)
|
|
# subgopher-max = 1.0
|
|
#
|
|
# # Information included in caps.txt
|
|
# # policy file
|
|
# admin-email = ""
|
|
# description = ""
|
|
# geolocation = ""
|
|
|
|
# Gemini specific configuration, uncomment
|
|
# if you have built gophi as a gemini server
|
|
#[gemini]
|
|
# tls-cert = ""
|
|
# tls-key = "" |