-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnimlike.example.ini
51 lines (41 loc) · 1.59 KB
/
nimlike.example.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;; Nimlike config
[nimlike]
;; Where the server root is. Needs an absolute path.
server_root=/home/mihara/Projects/blog/gemini/
;; Where we keep our "database", which is a directory that must be writable by
;; the server and/or its cgi children, somewhere outside server root.
;; It will not be created automatically.
;;
;; Comments will be in *.jsonl
;; Likes will be in *.txt
;;
data=/home/mihara/Projects/blog/gemini-nimlike/
;; Regexp to tell commentable files from non-commentable in a generic way. If
;; it matches the filename, comment is allowed, unless it also matches any of
;; the forbid regexps below.
;;
;; Needs to be written with r"" like that to work, that's Nim syntax.
;; The syntax for the regular expression itself is (more or less) PCRE.
allow = r"\.gmi$"
;; Salt for the emoji hash function.
salt = "moderatelywickedwitchoftheeast"
;; The name for commenters for whom a nickname cannot be determined.
anonymous = Anonymous
;; You can uncomment this to disable like functionality while leaving in the
;; comments.
;disable_likes = true
;; By default, there is no limit to how many comments a given IP address may
;; leave per post. You can set it by uncommenting this value.
;comment_limit = 5
;; You can disable the requirement for client certificates to leave a comment
;; by setting this option to true. By default it's false.
;disable_certs = true
[forbid]
;; A list, one per line, of URL regexps, leading slash excluded, on which comments
;; and likes are forbidden.
;; I use it to exclude pages like tag and post lists.
r"^archive.gmi"
r"^tags.gmi"
r"^index.gmi"
r"^categories/.*"
r"^tags/.*"