mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-27 19:36:24 -07:00
154 lines
5.3 KiB
JSON
154 lines
5.3 KiB
JSON
{
|
|
"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"
|
|
}
|