399128c208
Added a template minifier which strips out many types of whitespace. Stop the router from blocking the other goroutines. Content is no longer an interface{} in the TopicUser and Reply structs Allow plugins to add new routes without any potential race coditions occuring Use non-breaking spaces in the topic view to make it harder for the minifier to break things.
40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
package main
|
|
|
|
// Database details
|
|
var dbhost = "localhost"
|
|
var dbuser = "root"
|
|
var dbpassword = "password"
|
|
var dbname = "gosora"
|
|
var dbport = "3306" // You probably won't need to change this
|
|
|
|
// Limiters
|
|
var max_request_size = 5 * megabyte
|
|
|
|
// Misc
|
|
var cache_topicuser = CACHE_STATIC
|
|
var user_cache_capacity = 100 // The max number of users held in memory
|
|
var topic_cache_capacity = 100 // The max number of topics held in memory
|
|
var default_route = route_topics
|
|
var default_group = 3 // Should be a setting
|
|
var activation_group = 5 // Should be a setting
|
|
var staff_css = " background-color: #ffeaff;"
|
|
var uncategorised_forum_visible = true
|
|
var enable_emails = false
|
|
var site_name = "Test Install" // Should be a setting
|
|
var site_email = "" // Should be a setting
|
|
var smtp_server = ""
|
|
//var noavatar = "https://api.adorable.io/avatars/{width}/{id}@{site_url}.png"
|
|
var noavatar = "https://api.adorable.io/avatars/285/{id}@" + site_url + ".png"
|
|
var items_per_page = 25
|
|
|
|
var site_url = "localhost:8080"
|
|
var server_port = "8080"
|
|
var enable_ssl = false
|
|
var ssl_privkey = ""
|
|
var ssl_fullchain = ""
|
|
|
|
// Developer flags
|
|
var debug = false
|
|
var profiling = false
|
|
|