-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.example.toml
227 lines (179 loc) · 4.81 KB
/
config.example.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
## The name to display on site titles and headers.
# site_name = "Ayase"
## Site url for oauth2 moderation routes
# site_url = "https://ayase.example.lulz"
## Image hash format.
## md5 and sha256 are supported.
# hash_format = "md5"
## Default Template Skins. This is template specific, however templates should always implement
## a default skin.
## Configure different slug options down below.
## Change this if you want to default to a different skin.
# default_skin = "default"
## Show database timings.
# debug = false
## Moderation cookie session secret. Be sure to change this!
# session_secret = "somerandomstringhere"
## Specifies the moderation authentication backend. Only oauth2 and none are currently supported.
## none should only be used for testing and development! This option will make every user who visits /admin/login a moderator.
## If you specify oauth2, you will need to setup and configure oauth2 below.
# authentication_type = "oauth2"
## List of archived boards to display.
[[archives]]
shortname = "a"
name = "Anime & Manga"
[[archives]]
shortname = "aco"
name = "Adult Cartoons"
[[archives]]
shortname = "an"
name = "Animals & Nature"
[[archives]]
shortname = "c"
name = "Cute"
[[archives]]
shortname = "co"
name = "Comics & Cartoons"
[[archives]]
shortname = "d"
name = "Hentai/Alternative"
[[archives]]
shortname = "fit"
name = "Fitness"
[[archives]]
shortname = "his"
name = "History & Humanities"
[[archives]]
shortname = "int"
name = "International"
[[archives]]
shortname = "k"
name = "Weapons"
[[archives]]
shortname = "m"
name = "Mecha"
[[archives]]
shortname = "mlp"
name = "Pony"
[[archives]]
shortname = "q"
name = "4chan Feedback"
[[archives]]
shortname = "qa"
name = "Question & Answer"
[[archives]]
shortname = "r9k"
name = "ROBOT9001"
[[archives]]
shortname = "tg"
name = "Traditional Games"
[[archives]]
shortname = "trash"
name = "Off-Topic"
[[archives]]
shortname = "vr"
name = "Retro Games"
[[archives]]
shortname = "wsg"
name = "Worksafe GIF"
## List of non-archive boards to display.
## Boards currently are no different from archives, although it may be used for text
## boards in the future.
[[boards]]
shortname = "meta"
name = "Meta"
## Template skins.
## On the Foolfuuka template, this is achieved using cookies.
[[skins]]
slug = "default"
name = "FoolFuuka - Default"
[[skins]]
slug = "midnight"
name = "FoolFuuka - Midnight"
[[skins]]
slug = "kurimasu"
name = "FoolFuuka - Christmas"
[[skins]]
slug = "barentain"
name = "FoolFuuka - Valentine's Day"
[[skins]]
slug = "halloween"
name = "FoolFuuka - Halloween"
## Specify the schema.
## Only asagi is supported.
# [schema]
# name = "asagi"
## Template options
## These options configure features on the frontend.
# [options]
## Enable a Post Selector button that allows you to select a number of posts for use in reporting.
# post_selector = true
## Enable the stats tab. (No function)
# stats = false
## Enable the ghost tab. (No function)
# ghost = false
## Show the search bar. Search functionality will be available in a future version.
# search = false
## Enable reports.
# reports = false
## Enable moderation.
# moderation = false
## Specify the url where images are hosted.
## The following is the default for ayase.
## You may also specify a full URL.
# [image_location]
# image = "/img/{board_name}/image"
# thumb = "/img/{board_name}/thumb"
## Torako sha256 folder structure.
## If you are using sha256 with seaweedfs, with thumbs and images in the same folder,
## use this image_location format.
# [image_location]
# image = "/img"
# thumb = "/img"
## OpenAPI scraper info (currently unused).
# [scraper]
# default = "asagi"
#
# [scraper.asagi]
# name = "Asagi"
# source = "https://github.com/eksopl/asagi"
#
# [scraper.ena]
# name = "Ena"
# source = "https://github.com/shiimizu/ena"
#
# [scraper.torako]
# name = "Torako"
# source = "https://github.com/miyachan/torako"
## OAuth2 authentication config. Only supports Gitlab for now.
# [oauth2]
# provider = "gitgud"
# login_url = "https://gitgud.io/oauth/authorize"
# token_url = "https://gitgud.io/oauth/token"
# userinfo_url = "https://gitgud.io/oauth/userinfo"
# client_id = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
# secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
# cookie_expiration = 86400
## Specify admin and moderation groups
# [oauth2.groups]
# admins = "gitgud-admin-group"
# moderators = "gitgud-mod-group"
## Database options
[database]
default = "mysql"
[database.mysql]
host = "127.0.0.1"
port = 3306
db = "asagi"
user = "asagi"
password = "asagi"
charset = "utf8mb4"
[reports_db]
default = "mysql"
[reports_db.mysql]
host = "127.0.0.1"
port = 3306
db = "ayase"
user = "ayase"
password = "ayase"
charset = "utf8mb4"