This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
booruconfig_default.toml
164 lines (140 loc) · 5.02 KB
/
booruconfig_default.toml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name = "axumbooru"
# Следующая часть конфига повторяет Szurubooru
# и используется для примера, поэтому некоторые
# аргументы могут не использоваться в коде
# и не дойти до релиза.
# P.S. Также некоторые ключи которые я посчитал
# ненужными или изыботочными опущены.
listen = "127.0.0.1:6667"
# full url to the homepage of this szurubooru site, with no trailing slash
domain = "" # example = http://example.com
# used to salt the users' password hashes and generate filenames for static content
secret = "change"
# Delete thumbnails and source files on post delete
# Original functionality is no, to mitigate the impacts of admins going
# on unchecked post purges.
delete_source_files = false
contact_email = "admin@mail.example" # Meant for manual password reset procedures
enable_safety = true
tag_name_regex = '^\S+$'
tag_category_name_regex = '^[^\s%+#/]+$'
pool_name_regex = '^\S+$'
pool_category_name_regex = '^[^\s%+#/]+$'
# don't make these more restrictive unless you want to annoy people; if you do
# customize them, make sure to update the instructions in the registration form
# template as well.
password_regex = '^.{5,}$'
user_name_regex = '^[a-zA-Z0-9_-]{1,32}$'
# allow posts to be uploaded even if some image processing errors occur
allow_broken_uploads = false
# webhooks to call when events occur (such as post/tag/user/etc. changes)
# the listed urls will be called with a HTTP POST request with a payload
# containing a snapshot resource as JSON. See doc/API.md for details
# webhooks = [
# "https://api.example.com/webhooks/", '
# ]
default_rank = "regular"
[privileges]
"users:create:self" = "anonymous" # Registration permission
"users:create:any" = "administrator"
"users:list" = "regular"
"users:view" = "regular"
"users:edit:any:name" = "moderator"
"users:edit:any:pass" = "moderator"
"users:edit:any:email" = "moderator"
"users:edit:any:avatar" = "moderator"
"users:edit:any:rank" = "moderator"
"users:edit:self:name" = "regular"
"users:edit:self:pass" = "regular"
"users:edit:self:email" = "regular"
"users:edit:self:avatar" = "regular"
"users:edit:self:rank" = "moderator" # one can't promote themselves or anyone to upper rank than their own.
"users:delete:any" = "administrator"
"users:delete:self" = "regular"
"userTokens:list:any" = "administrator"
"userTokens:list:self" = "regular"
"userTokens:create:any" = "administrator"
"userTokens:create:self" = "regular"
"userTokens:edit:any" = "administrator"
"userTokens:edit:self" = "regular"
"userTokens:delete:any" = "administrator"
"userTokens:delete:self" = "regular"
"posts:create:anonymous" = "regular"
"posts:create:identified" = "regular"
"posts:list" = "anonymous"
"posts:reverseSearch" = "regular"
"posts:view" = "anonymous"
"posts:view:featured" = "anonymous"
"posts:edit:content" = "power"
"posts:edit:flags" = "regular"
"posts:edit:notes" = "regular"
"posts:edit:relations" = "regular"
"posts:edit:safety" = "power"
"posts:edit:source" = "regular"
"posts:edit:tags" = "regular"
"posts:edit:thumbnail" = "power"
"posts:feature" = "moderator"
"posts:delete" = "moderator"
"posts:score" = "regular"
"posts:merge" = "moderator"
"posts:favorite" = "regular"
"posts:bulk-edit:tags" = "power"
"posts:bulk-edit:safety" = "power"
"posts:bulk-edit:delete" = "power"
"tags:create" = "regular"
"tags:edit:names" = "power"
"tags:edit:category" = "power"
"tags:edit:description" = "power"
"tags:edit:implications" = "power"
"tags:edit:suggestions" = "power"
"tags:list" = "regular"
"tags:view" = "anonymous"
"tags:merge" = "moderator"
"tags:delete" = "moderator"
"tagCategories:create" = "moderator"
"tagCategories:edit:name" = "moderator"
"tagCategories:edit:color" = "moderator"
"tagCategories:edit:order" = "moderator"
"tagCategories:list" = "anonymous"
"tagCategories:view" = "anonymous"
"tagCategories:delete" = "moderator"
"tagCategories:setDefault" = "moderator"
"pools:create" = "regular"
"pools:edit:names" = "power"
"pools:edit:category" = "power"
"pools:edit:description" = "power"
"pools:edit:posts" = "power"
"pools:list" = "regular"
"pools:view" = "anonymous"
"pools:merge" = "moderator"
"pools:delete" = "moderator"
"poolCategories:create" = "moderator"
"poolCategories:edit:name" = "moderator"
"poolCategories:edit:color" = "moderator"
"poolCategories:list" = "anonymous"
"poolCategories:view" = "anonymous"
"poolCategories:delete" = "moderator"
"poolCategories:setDefault" = "moderator"
"comments:create" = "regular"
"comments:delete:any" = "moderator"
"comments:delete:own" = "regular"
"comments:edit:any" = "moderator"
"comments:edit:own" = "regular"
"comments:list" = "regular"
"comments:view" = "regular"
"comments:score" = "regular"
"snapshots:list" = "power"
"uploads:create" = "regular"
"uploads:useDownloader" = "power"
[thumbnails]
avatar_width = 300
avatar_height = 300
post_width = 300
post_height = 300
[smtp]
enabled = false
host = "smtp.mail.example"
port = 25
user = "booru"
pass = "booru"
from = "booru@mail.example"