diff options
author | jake <jake@jakes-mail.top> | 2022-08-25 22:16:25 -0400 |
---|---|---|
committer | jake <jake@jakes-mail.top> | 2022-08-25 22:16:25 -0400 |
commit | 9f5b0269b46667d61bf74fcfa4f6183b0b5220f9 (patch) | |
tree | 24d7e47368bfab6e667fd17f59dc45876a2b2f34 /config.toml.sample | |
parent | 6dc54569c2303c79903e89c8b96bf7663aaecc9f (diff) |
Add user client certificate option
Diffstat (limited to 'config.toml.sample')
-rw-r--r-- | config.toml.sample | 28 |
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', +# ], +#} |