1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-05 15:16:22 -07:00
gochan/examples/configs/gochan.example.json

112 lines
3.4 KiB
JSON
Raw Normal View History

{
"ListenIP": "127.0.0.1",
"Port": 8080,
"FirstPage": ["index.html","firstrun.html","1.html"],
2022-12-31 17:29:57 -08:00
"Username": "www-data",
"UseFastCGI": false,
2020-04-02 00:44:54 +02:00
"DebugMode": false,
"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",
"Lockdown": false,
"LockdownMessage": "This imageboard has temporarily disabled posting. We apologize for the inconvenience",
"Modboard": "staff",
"SiteName": "Gochan",
"SiteSlogan": "",
"SiteDomain": "127.0.0.1",
"SiteHeaderURL": "",
"WebRoot": "/",
"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" },
2021-03-22 09:54:08 -07:00
{ "Name": "Photon", "Filename": "photon.css" },
{ "Name": "Yotsuba", "Filename": "yotsuba.css" },
2022-01-16 21:13:56 -08:00
{ "Name": "Yotsuba B", "Filename": "yotsubab.css" },
{ "Name": "Windows 9x", "Filename": "win9x.css"}
],
"DefaultStyle": "pipes.css",
2023-04-10 15:25:57 -07:00
"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,
2021-07-11 18:12:02 -07:00
"ThumbWidthReply": 125,
"ThumbHeightReply": 125,
"ThumbWidthCatalog": 50,
"ThumbHeightCatalog": 50,
2023-06-02 12:52:18 -07:00
"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",
"EnableEmbeds": true,
"EmbedWidth": 200,
"EmbedHeight": 164,
"ImagesOpenNewTab": true,
"NewTabOnOutlinks": true,
"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"
},
2023-12-06 14:54:51 -08:00
"EnableGeoIP": false,
"GeoIPDBType": "",
"GeoIPDBType_info": "valid GeoIPDBType values are '', 'none', 'legacy', and 'geoip2'. '' and 'none' are treated as the same. 'geoip2' is used for MaxMind's GeoIP2 and GeoLite2 .mmdb databases. 'legacy' will eventually support the legacy GeoIP databases",
"_EnableGeoIP_info": "set GeoIPDBlocation to cf to use Cloudflare's GeoIP",
"GeoIPDBlocation": "/usr/share/GeoIP/GeoIP.dat",
"MaxRecentPosts": 12,
"RecentPostsWithNoFile": false,
"Verbosity": 0,
"EnableAppeals": true,
"MaxLogDays": 14,
"RandomSeed": "",
"_RandomSeed_info": "Set RandomSeed to a (preferrably large) string of letters and numbers"
}