switch to using config file, no flags. remove fwd port
Signed-off-by: kim (grufwub) <grufwub@gmail.com>development
parent
5d4b97c607
commit
1cce82a480
@ -0,0 +1,109 @@
|
||||
# NOTE: due to how TOML is parsed, you will
|
||||
# need to escape forward slashes in regex
|
||||
# statements and anywhere else you may
|
||||
# need them
|
||||
|
||||
root = "/home/grufwub/gopher_space"
|
||||
listen = "127.0.0.1"
|
||||
hostname = "localhost"
|
||||
port = 1024
|
||||
#fwd-port = 70
|
||||
|
||||
[connection]
|
||||
# Connection read timeout
|
||||
read-timeout = "5s"
|
||||
|
||||
# Connection write timeout
|
||||
write-timeout = "15s"
|
||||
|
||||
# Connection read buffer size (in bytes)
|
||||
read-buf = 1024
|
||||
|
||||
# Connection write buffer size (in bytes)
|
||||
write-buf = 1024
|
||||
|
||||
# Connection read max (in bytes)
|
||||
read-max = 4096
|
||||
|
||||
[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]
|
||||
# String array of filesystem path
|
||||
# regex statements to restrict.
|
||||
restrict = [
|
||||
"(.+/)?\\.\\w",
|
||||
]
|
||||
|
||||
# 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"
|
||||
|
||||
# Maximum CGI script runtime
|
||||
max-time = "3s"
|
||||
|
||||
# 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 = ""
|
@ -1,14 +1,34 @@
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/grufwub/go-bufpools v0.0.0-20201026084325-a3a938b7d6d8 h1:NFJnr99JkUeqZcTCf0uwMX3EG7YpwLrQ3j9gGlkd5tg=
|
||||
github.com/grufwub/go-bufpools v0.0.0-20201026084325-a3a938b7d6d8/go.mod h1:ITqLRtG+W1bZHGdkWewV7inb+GcWfq2Jcjqx4AZ7aBY=
|
||||
github.com/grufwub/go-config v0.0.0-20201124172124-ab889252a803 h1:2iPyExiV1bZvk9mIGNqUHNa+eumkHxsboOJ4v9kXbY4=
|
||||
github.com/grufwub/go-config v0.0.0-20201124172124-ab889252a803/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.0-20201124181629-6b32a4ba72aa h1:YpJ096JOYkatWvGMXyCgrKeH8MFfEDiDpPxehb3hPWo=
|
||||
github.com/grufwub/go-config v0.0.0-20201124181629-6b32a4ba72aa/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.1 h1:YRdGk6+bmJA5WrauQ/lxVIXeUFJunJZ1uMrD3DJYix0=
|
||||
github.com/grufwub/go-config v0.0.1/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.2 h1:5jmpqlJuX3+xJL2klggIzMpbfrRldzjpSimaAPfa9kA=
|
||||
github.com/grufwub/go-config v0.0.2/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.3 h1:ifJKvpA/XDTU/OXggjcRtWVaQmBHd338kIe18zE8cHo=
|
||||
github.com/grufwub/go-config v0.0.3/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.4 h1:soVvy6XPet6uaf2uENPCXAgXVJBXbxT/vW6/FAhiTx0=
|
||||
github.com/grufwub/go-config v0.0.4/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.5 h1:9eU1+tNHKBDvyj14qhFVMaP4iwaQo1ywojXrPjDR/uE=
|
||||
github.com/grufwub/go-config v0.0.5/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.6 h1:VPhbGhbQh5goCFyIEnA2zJqcDLgxpm9nXpAjUH+YONo=
|
||||
github.com/grufwub/go-config v0.0.6/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.7 h1:h37CmDYxYl9B4zf9SjjZNdW2i14rII36a0vbnQ0+7lQ=
|
||||
github.com/grufwub/go-config v0.0.7/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-config v0.0.8 h1:4wM4ua+JnQz/QnD3qD1NMrJlTHgwMStoii6mmOxcH7U=
|
||||
github.com/grufwub/go-config v0.0.8/go.mod h1:0U5Y0EkNeL09YkY70fNZv4Kelfayp/VroEs2UzmUG04=
|
||||
github.com/grufwub/go-errors v0.0.0-20201109215724-b43fef6af3e8 h1:RZ1QpN8yD2+4cFNnC5Oj7HUmYKK3Tg42Us6ENquSoj8=
|
||||
github.com/grufwub/go-errors v0.0.0-20201109215724-b43fef6af3e8/go.mod h1:AXGtU2fWv8ejaUUT0+9wTOlWqcxYDo8wuYnhrYtoBKM=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109171316-e186294c25c3 h1:sKi/LgWR7E8VS3fOz0QFWqTl8mhcSiosYPXlT+hxdUU=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109171316-e186294c25c3/go.mod h1:FAUdzHGs72ulYZCh9xPJWJosuInjppjBOw/bKJYS+R8=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109230405-fc17bb15911c h1:7wPLhDm60uI8f5pU5wlkVtrAV+ej5uNZQ0BbXq85enk=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109230405-fc17bb15911c/go.mod h1:FAUdzHGs72ulYZCh9xPJWJosuInjppjBOw/bKJYS+R8=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109234016-53d503bf2622 h1:5KP/W4Usq09XBySqmPVuYDcPAGI4Z86bTN4k1yKapmI=
|
||||
github.com/grufwub/go-filecache v0.0.0-20201109234016-53d503bf2622/go.mod h1:FAUdzHGs72ulYZCh9xPJWJosuInjppjBOw/bKJYS+R8=
|
||||
github.com/grufwub/go-logger v0.0.0-20201101130825-423526bd353f h1:dLs3F/sxDeP9EOF+9oUVoCucDoPBvmRCGKQnbrTgZsg=
|
||||
github.com/grufwub/go-logger v0.0.0-20201101130825-423526bd353f/go.mod h1:pZny1PMTpy9FAKMbaDYbPJbthl0wrSpVoIcnEjkRZaQ=
|
||||
github.com/grufwub/go-upmutex v0.0.0-20201106234426-e4de73a0e690 h1:o2aGDpfO5v3qAVlvwLzQMM549fzMPi5NaT44YVdIprk=
|
||||
github.com/grufwub/go-upmutex v0.0.0-20201106234426-e4de73a0e690/go.mod h1:Eb/BM4cKjBdmbwJ0XJ4GxIeSFCBOIWzIUx7RN/VKHNs=
|
||||
github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=
|
||||
github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc=
|
||||
|
Loading…
Reference in New Issue