2016-12-02 08:07:56 +00:00
|
|
|
package main
|
|
|
|
|
2017-07-17 10:23:42 +00:00
|
|
|
func init() {
|
2017-09-11 10:24:03 +00:00
|
|
|
// Site Info
|
2017-09-13 15:11:17 +00:00
|
|
|
site.Name = "TS"
|
|
|
|
site.Email = ""
|
|
|
|
site.URL = "localhost"
|
2017-09-11 10:24:03 +00:00
|
|
|
site.Port = "8080" // 8080
|
|
|
|
site.EnableSsl = false
|
|
|
|
site.EnableEmails = false
|
|
|
|
site.HasProxy = false // Cloudflare counts as this, if it's sitting in the middle
|
|
|
|
config.SslPrivkey = ""
|
|
|
|
config.SslFullchain = ""
|
2017-09-13 15:11:17 +00:00
|
|
|
site.Language = "english"
|
2017-09-11 10:24:03 +00:00
|
|
|
|
|
|
|
// Database details
|
2017-09-13 15:11:17 +00:00
|
|
|
dbConfig.Host = "localhost"
|
|
|
|
dbConfig.Username = "root"
|
|
|
|
dbConfig.Password = "password"
|
|
|
|
dbConfig.Dbname = "gosora"
|
|
|
|
dbConfig.Port = "3306" // You probably won't need to change this
|
2017-09-11 10:24:03 +00:00
|
|
|
|
|
|
|
// Limiters
|
|
|
|
config.MaxRequestSize = 5 * megabyte
|
|
|
|
|
|
|
|
// Caching
|
|
|
|
config.CacheTopicUser = CACHE_STATIC
|
|
|
|
config.UserCacheCapacity = 120 // The max number of users held in memory
|
|
|
|
config.TopicCacheCapacity = 200 // The max number of topics held in memory
|
|
|
|
|
|
|
|
// Email
|
|
|
|
config.SmtpServer = ""
|
|
|
|
config.SmtpUsername = ""
|
|
|
|
config.SmtpPassword = ""
|
|
|
|
config.SmtpPort = "25"
|
|
|
|
|
|
|
|
// Misc
|
|
|
|
config.DefaultRoute = routeTopics
|
|
|
|
config.DefaultGroup = 3 // Should be a setting in the database
|
|
|
|
config.ActivationGroup = 5 // Should be a setting in the database
|
|
|
|
config.StaffCss = "staff_post"
|
|
|
|
config.UncategorisedForumVisible = true
|
|
|
|
config.MinifyTemplates = false
|
|
|
|
config.MultiServer = false // Experimental: Enable Cross-Server Synchronisation and several other features
|
|
|
|
|
|
|
|
//config.Noavatar = "https://api.adorable.io/avatars/{width}/{id}@{site_url}.png"
|
|
|
|
config.Noavatar = "https://api.adorable.io/avatars/285/{id}@{site_url}.png"
|
|
|
|
config.ItemsPerPage = 25
|
|
|
|
|
|
|
|
// Developer flag
|
|
|
|
dev.DebugMode = true
|
|
|
|
//dev.SuperDebug = true
|
|
|
|
//dev.Profiling = true
|
2017-07-17 10:23:42 +00:00
|
|
|
}
|