about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-22 13:47:40 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-22 13:47:40 +0100
commitb600c19b2e247e22fe7734696e7525826bdcc344 (patch)
treec4aaf6fcb73d925b552f23bd4aabe4773898b9a9 /doc
parentd4e855442c0f728f9caf018b865542b3de797616 (diff)
downloadchawan-b600c19b2e247e22fe7734696e7525826bdcc344.tar.gz
doc: fix cookie sharing example
This configuration scheme really is a nightmare to use :(
Diffstat (limited to 'doc')
-rw-r--r--doc/config.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/config.md b/doc/config.md
index cf5cf744..58a07823 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -481,10 +481,10 @@ rewrite-url = '''
 
 # Allow cookie sharing on *sr.ht domains.
 [[siteconf]]
-host = '.*sr\.ht'
-cookie = true
-share-cookie-jar = 'sr.ht'
-third-party-cookie = '.*\.sr.ht'
+host = '(.*\.)?sr\.ht' # either 'something.sr.ht' or 'sr.ht'
+cookie = true # enable cookies
+share-cookie-jar = 'sr.ht' # use the cookie jar of 'sr.ht' for all matched hosts
+third-party-cookie = '.*\.sr\.ht' # allow cookies from subdomains
 ```
 
 Siteconf options: