-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathgochan.example.json
More file actions
154 lines (140 loc) · 5.27 KB
/
gochan.example.json
File metadata and controls
154 lines (140 loc) · 5.27 KB
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
{
"ListenAddress": "127.0.0.1",
"Port": 8080,
"FirstPage": ["index.html","firstrun.html","1.html"],
"Username": "",
"UseFastCGI": false,
"LogLevel": "debug",
"DocumentRoot": "html",
"TemplateDir": "templates",
"LogDir": "log",
"DBtype": "mysql|postgres|sqlite3",
"_DBtype_info":"DBtype refers to the SQL server/library gochan will connect to",
"DBhost": "127.0.0.1:3306",
"_DBhost_info": "The domain:port or UNIX socket of the form 'unix(/path/to/socket)' of the MySQL/MariaDB or Postgres server, or the path to a SQLite3 database file, (DB file will be created if it doesn't exist)",
"DBname": "gochan",
"DBusername": "gochan",
"DBpassword": "",
"DBprefix": "gc_",
"_DBprefix_info": "The prefix automataically applied to tables when the database is being provisioned and queried",
"CheckRequestReferer": true,
"Lockdown": false,
"LockdownMessage": "This imageboard has temporarily disabled posting. We apologize for the inconvenience",
"Modboard": "staff",
"SiteName": "Gochan",
"SiteSlogan": "",
"SiteHost": "127.0.0.1",
"WebRoot": "/",
"FingerprintVideoThumbnails": false,
"Styles": [
{ "Name": "Pipes", "Filename": "pipes.css" },
{ "Name": "BunkerChan", "Filename": "bunkerchan.css" },
{ "Name": "Burichan", "Filename": "burichan.css" },
{ "Name": "Clear", "Filename": "clear.css" },
{ "Name": "Dark", "Filename": "dark.css" },
{ "Name": "Photon", "Filename": "photon.css" },
{ "Name": "Yotsuba", "Filename": "yotsuba.css" },
{ "Name": "Yotsuba B", "Filename": "yotsubab.css" },
{ "Name": "Windows 9x", "Filename": "win9x.css"}
],
"DefaultStyle": "pipes.css",
"_IncludeGlobalStyles": ["http://example.com/use.css"],
"_IncludeScripts": [
{"Location": "http://example.com/load.js"},
{"Location": "http://example.com/loadDefer.js", "Defer": true}
],
"CustomFlags": [
{"Flag":"california.png", "Name": "California"},
{"Flag":"cia.png", "Name": "CIA"},
{"Flag":"lgbtq.png", "Name": "LGBTQ"},
{"Flag":"ms-dos.png", "Name": "MS-DOS"},
{"Flag":"stallman.png", "Name": "Stallman"},
{"Flag":"templeos.png", "Name": "TempleOS"},
{"Flag":"tux.png", "Name": "Linux"},
{"Flag":"windows9x.png", "Name": "Windows 9x"}
],
"Banners": [
{"Filename": "gochan_go-parody.png", "Width": 300, "Height": 100}
],
"AllowDuplicateImages": true,
"AllowVideoUploads": true,
"NewThreadDelay": 30,
"ReplyDelay": 7,
"MaxLineLength": 150,
"ReservedTrips": {
"thischangesto": "this",
"andthischangesto": "this"
},
"ThumbWidth": 200,
"ThumbHeight": 200,
"ThumbWidthReply": 125,
"ThumbHeightReply": 125,
"ThumbWidthCatalog": 50,
"ThumbHeightCatalog": 50,
"AllowOtherExtensions": {
".zip": "archivethumb.png",
".pdf": "pdfthumb.png",
".dat": "otherthumb.png"
},
"StripImageMetadata": "none",
"ExifToolPath": "",
"ThreadsPerPage": 15,
"RepliesOnBoardPage": 3,
"StickyRepliesOnBoardPage": 1,
"BanColors": {
"admin": "#0000A0",
"somemod": "blue"
},
"BanMessage": "USER WAS BANNED FOR THIS POST",
"EnableCyclicThreads": true,
"CyclicThreadNumPosts": 500,
"EnableNoFlag": true,
"EmbedWidth": 200,
"EmbedHeight": 200,
"EmbedMatchers": {
"youtube": {
"URLRegex": "^https?://(?:(?:(?:www\\.)?youtube\\.com/watch\\?v=)|(?:youtu\\.be/))([^&]+)",
"EmbedTemplate": "<iframe class=\"embed\" width={{.ThumbWidth}} height={{.ThumbHeight}} src=\"https://www.youtube-nocookie.com/embed/{{.MediaID}}\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>",
"ThumbnailURLTemplate": "https://img.youtube.com/vi/{{.MediaID}}/0.jpg",
"MediaURLTemplate": "https://www.youtube.com/watch?v={{.MediaID}}"
},
"vimeo": {
"URLRegex": "^https?://(?:\\w+\\.)?vimeo\\.com/(\\d{2,10})",
"EmbedTemplate": "<iframe src=\"https://player.vimeo.com/video/{{.MediaID}}\" class=\"embed\" width={{.ThumbWidth}} height={{.ThumbHeight}} allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>",
"ThumbnailURLTemplate": "https://vumbnail.com/{{.MediaID}}.jpg",
"MediaURLTemplate": "https://vimeo.com/{{.MediaID}}"
},
"rawvideo": {
"URLRegex": "^https?://\\S+\\.\\S+/\\S+/(\\S+\\.(?:mp4|webm))$",
"EmbedTemplate": "<video class=\"embed embed-{{.HandlerID}}\" src=\"{{.MediaID}}\" style=\"max-width:{{.ThumbWidth}}px; max-height:{{.ThumbHeight}}px\"></video>",
"MediaIDSubmatchIndex": 0,
"MediaURLTemplate": "{{.MediaID}}"
}
},
"ImagesOpenNewTab": true,
"NewTabOnOutlinks": true,
"DisableBBcode": false,
"AllowDiceRerolls": false,
"MinifyHTML": true,
"MinifyJS": true,
"DateTimeFormat": "Mon, January 02, 2006 3:04 PM",
"_Captcha": {
"Type": "hcaptcha",
"OnlyNeededForThreads": true,
"SiteKey": "your site key goes here (if you want a captcha, make sure to replace '_Captcha' with 'Captcha'",
"AccountSecret": "your account secret key goes here"
},
"_GeoIPType": "mmdb",
"_GeoIPOptions": {
"dbLocation": "/usr/share/geoip/GeoIP2.mmdb",
"isoCode": "en"
},
"EnableGeoIP": false,
"MaxRecentPosts": 12,
"RecentPostsWithNoFile": false,
"Verbosity": 0,
"EnableAppeals": true,
"MaxLogDays": 14,
"RandomSeed": "",
"_RandomSeed_info": "Set RandomSeed to a (preferrably large) string of letters and numbers"
}