summaryrefslogtreecommitdiff
path: root/config.toml.sample
diff options
context:
space:
mode:
Diffstat (limited to 'config.toml.sample')
-rw-r--r--config.toml.sample28
1 files changed, 26 insertions, 2 deletions
diff --git a/config.toml.sample b/config.toml.sample
index 3f22149..a75fc25 100644
--- a/config.toml.sample
+++ b/config.toml.sample
@@ -73,7 +73,7 @@ redirection = 'simple'
# Generate certificate and key automatically? Uses cert_key_dir
auto_cert = true
# Overrides default setting
-assume_index = true
+assume_index = true
# A more realistic example
#['example.com']
@@ -111,4 +111,28 @@ assume_index = true
# '/blog/2022/dec/(.+)' = '/blog/2022/jul/$1',
# # $1 $2 $3
# '/blog/(20..)/(.+)/(.+)' = '/newsgroup/$1-$2/$3',
-# }
+#}
+#
+#cert_req = {
+# # will accept ANY certificate
+# '/cert_required(.*) = 'any',
+# # Same as above but you can set the text that will accopany the header.
+# '/blog/secret(.*) = [
+# 'any', 'This is my secret place.'
+# ],
+# # Lock an area off with specific fingerprints (sha256)!
+# '/payment_club(.*)' = [
+# 'pubkey, 'Accepted members only',
+# # fingerprints (sha256) can have colons and be upper or lower case: program will normalize them.
+# '0b435dd2efc7c7569d97559c22d4a35abbd19cfd6d15d23989773a69df5556c2',
+# '...',
+# ],
+# # Suppose you have a LOT of pubkeys? This example will solve it.
+# '/secret_blog(.*)' = [
+# # file option allows you to specify files that should have a listing of accepted pubkeys
+# # the second option '0' just tells the server to serve default meta text
+# 'file', 0,
+# '../pubkeys1.txt',
+# '../pubkeys2.txt',
+# ],
+#}