summaryrefslogtreecommitdiff
path: root/config.toml.sample
diff options
context:
space:
mode:
Diffstat (limited to 'config.toml.sample')
-rw-r--r--config.toml.sample8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.toml.sample b/config.toml.sample
index 6ec5e6a..c1962c7 100644
--- a/config.toml.sample
+++ b/config.toml.sample
@@ -56,6 +56,9 @@ default_mime = 'text/plain'
# 'simple', which is simply "if 'x' key exist, return the value for it"
# 'regex' which is a bit more complex and uses Perl's built in regualar expression. See the vhost for an example of one.
redirection = 'simple'
+# gone, a default context dones't really do anything besides let all vhost check for a .gone file if the original path doesn't exist.
+# vhost setting for this is somewhat more involved
+gone = true
### Not implimented yet
# similar to .htaccess, .gmiaccess
@@ -97,6 +100,10 @@ assume_index = true
#dir_listing = true
#default_mime = 'text/plain'
#
+## Regex settings:
+## they are checked in the following order:
+## certificate, redirection, gone
+#
#redirection = 'regex'
#redirect = {
# # note the beginning '/'.
@@ -136,6 +143,7 @@ assume_index = true
# '../pubkeys2.txt',
# ],
#}
+# if you dont want a vhost to be able to set gone, leave this hash empty or delete it entirely.
#gone = {
# # this checks if a path location doesn't exist, but does if '.gone' is appended, which will return a gone gemini status
# append = true,