2016-12-02 08:07:56 +00:00
|
|
|
package main
|
|
|
|
|
2017-07-17 10:23:42 +00:00
|
|
|
func init() {
|
2017-05-07 08:31:41 +00:00
|
|
|
// Site Info
|
2017-07-17 10:23:42 +00:00
|
|
|
site.Name = "Test Site" // Should be a setting in the database
|
|
|
|
site.Email = "" // Should be a setting in the database
|
|
|
|
site.Url = "localhost"
|
|
|
|
site.Port = "8080"
|
|
|
|
site.EnableSsl = false
|
|
|
|
site.EnableEmails = false
|
|
|
|
config.SslPrivkey = ""
|
|
|
|
config.SslFullchain = ""
|
2017-05-07 08:31:41 +00:00
|
|
|
|
2016-12-02 08:07:56 +00:00
|
|
|
// Database details
|
2017-07-17 10:23:42 +00:00
|
|
|
db_config.Host = "localhost"
|
|
|
|
db_config.Username = "root"
|
|
|
|
db_config.Password = "password"
|
|
|
|
db_config.Dbname = "gosora"
|
|
|
|
db_config.Port = "3306" // You probably won't need to change this
|
2016-12-02 15:03:31 +00:00
|
|
|
|
|
|
|
// Limiters
|
2017-07-17 10:23:42 +00:00
|
|
|
config.MaxRequestSize = 5 * megabyte
|
2016-12-03 08:09:40 +00:00
|
|
|
|
2017-05-07 08:31:41 +00:00
|
|
|
// Caching
|
2017-07-17 10:23:42 +00:00
|
|
|
config.CacheTopicUser = CACHE_STATIC
|
|
|
|
config.UserCacheCapacity = 100 // The max number of users held in memory
|
|
|
|
config.TopicCacheCapacity = 100 // The max number of topics held in memory
|
2017-03-15 08:34:14 +00:00
|
|
|
|
2017-05-07 08:31:41 +00:00
|
|
|
// Email
|
2017-07-17 10:23:42 +00:00
|
|
|
config.SmtpServer = ""
|
|
|
|
config.SmtpUsername = ""
|
|
|
|
config.SmtpPassword = ""
|
|
|
|
config.SmtpPort = "25"
|
2017-05-07 08:31:41 +00:00
|
|
|
|
|
|
|
// Misc
|
2017-07-17 10:23:42 +00:00
|
|
|
config.DefaultRoute = route_topics
|
|
|
|
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
|
|
|
|
}
|