DBprefixstring`description:"Each table's name in the database will start with this, if it is set"`
DebugModebool`description:"Disables several spam/browser checks that can cause problems when hosting an instance locally."`
RandomSeedstring
Version*GochanVersion`json:"-"`
TimeZoneint`json:"-"`
}
typeSiteConfigstruct{
FirstPage[]string
Usernamestring
CookieMaxAgestring`description:"The amount of time that session cookies will exist before they expire (ex: 1y2mo3d4h or 1 year 2 months 3 days 4 hours). Default is 1 year"`
Lockdownbool`description:"Disables posting."`
LockdownMessagestring`description:"Message displayed when someone tries to post while the site is on lockdown."`
SiteNamestring`description:"The name of the site that appears in the header of the front page."`
SiteSloganstring`description:"The text that appears below SiteName on the home page"`
Modboardstring`description:"A super secret clubhouse board that only staff can view/post to."`
MaxRecentPostsint`description:"The maximum number of posts to show on the Recent Posts list on the front page."`
RecentPostsWithNoFilebool`description:"If checked, recent posts with no image/upload are shown on the front page (as well as those with images"`
Verbosityint
EnableAppealsbool
MaxLogDaysint`description:"The maximum number of days to keep messages in the moderation/staff log file."`
MinifyHTMLbool`description:"If checked, gochan will minify html files when building"`
MinifyJSbool`description:"If checked, gochan will minify js and json files when building"`
GeoIPDBlocationstring`description:"Specifies the location of the GeoIP database file. If you're using CloudFlare, you can set it to cf to rely on CloudFlare for GeoIP information."`
AkismetAPIKeystring`description:"The API key to be sent to Akismet for post spam checking. If the key is invalid, Akismet won't be used."`
}
typeBoardConfigstruct{
InheritGlobalStylesbool`description:"If checked, a board uses the global Styles array + the board config's styles (with duplicates removed)"`
Styles[]Style`description:"List of styles (one per line) that should be accessed online at <SiteWebFolder>/css/<Style>"`
DefaultStylestring`description:"Filename of the default Style. If this unset, the first entry in the Styles array will be used."`
Sillytags[]string`description:"List of randomly selected fake staff tags separated by line, e.g. ## Mod, to be randomly assigned to posts if UseSillytags is checked. Don't include the \"## \""`
UseSillytagsbool`description:"Use Sillytags"`
PostConfig
UploadConfig
DateTimeFormatstring`description:"The format used for dates. See <a href=\"https://golang.org/pkg/time/#Time.Format\">here</a> for more info."`
AkismetAPIKeystring`description:"The API key to be sent to Akismet for post spam checking. If the key is invalid, Akismet won't be used."`
RejectDuplicateImagesbool`description:"Enabling this will cause gochan to reject a post if the image has already been uploaded for another post.\nThis may end up being removed or being made board-specific in the future."`
ThumbWidthint`description:"OP thumbnails use this as their max width.<br />To keep the aspect ratio, the image will be scaled down to the ThumbWidth or ThumbHeight, whichever is larger."`
ThumbHeightint`description:"OP thumbnails use this as their max height.<br />To keep the aspect ratio, the image will be scaled down to the ThumbWidth or ThumbHeight, whichever is larger."`
ThumbWidthReplyint`description:"Same as ThumbWidth and ThumbHeight but for reply images."`
ThumbHeightReplyint`description:"Same as ThumbWidth and ThumbHeight but for reply images."`
ThumbWidthCatalogint`description:"Same as ThumbWidth and ThumbHeight but for catalog images."`
ThumbHeightCatalogint`description:"Same as ThumbWidth and ThumbHeight but for catalog images."`
NewThreadDelayint`description:"The amount of time in seconds that is required before an IP can make a new thread.<br />This may end up being removed or being made board-specific in the future."`
ReplyDelayint`description:"Same as the above, but for replies."`
MaxLineLengthint`description:"Any line in a post that exceeds this will be split into two (or more) lines.<br />I'm not really sure why this is here, so it may end up being removed."`
ReservedTrips[]string`description:"Secure tripcodes (!!Something) can be reserved here.<br />Each reservation should go on its own line and should look like this:<br />TripPassword1##Tripcode1<br />TripPassword2##Tripcode2"`
ThreadsPerPageint
PostsPerThreadPageint
RepliesOnBoardPageint`description:"Number of replies to a thread to show on the board page."`
StickyRepliesOnBoardPageint`description:"Same as above for stickied threads."`