2016-12-02 08:07:56 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
// Database details
|
2017-01-10 06:51:28 +00:00
|
|
|
var dbhost = "localhost"
|
2016-12-02 08:07:56 +00:00
|
|
|
var dbuser = "root"
|
|
|
|
var dbpassword = "password"
|
2016-12-11 16:06:17 +00:00
|
|
|
var dbname = "gosora"
|
2016-12-02 09:29:45 +00:00
|
|
|
var dbport = "3306" // You probably won't need to change this
|
2016-12-02 15:03:31 +00:00
|
|
|
|
|
|
|
// Limiters
|
2016-12-03 08:09:40 +00:00
|
|
|
var max_request_size = 5 * megabyte
|
|
|
|
|
|
|
|
// Misc
|
2017-02-11 14:51:16 +00:00
|
|
|
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
|
2016-12-04 06:16:59 +00:00
|
|
|
var default_route = route_topics
|
2017-01-03 07:47:31 +00:00
|
|
|
var default_group = 3 // Should be a setting
|
|
|
|
var activation_group = 5 // Should be a setting
|
2016-12-08 14:11:18 +00:00
|
|
|
var staff_css = " background-color: #ffeaff;"
|
2016-12-07 09:34:09 +00:00
|
|
|
var uncategorised_forum_visible = true
|
2016-12-16 10:37:42 +00:00
|
|
|
var enable_emails = false
|
2017-01-03 07:47:31 +00:00
|
|
|
var site_name = "Test Install" // Should be a setting
|
2017-03-15 08:34:14 +00:00
|
|
|
|
2017-01-03 07:47:31 +00:00
|
|
|
var site_email = "" // Should be a setting
|
2016-12-16 10:37:42 +00:00
|
|
|
var smtp_server = ""
|
2017-03-15 08:34:14 +00:00
|
|
|
var smtp_username = ""
|
|
|
|
var smtp_password = ""
|
|
|
|
|
2017-01-03 07:47:31 +00:00
|
|
|
//var noavatar = "https://api.adorable.io/avatars/{width}/{id}@{site_url}.png"
|
|
|
|
var noavatar = "https://api.adorable.io/avatars/285/{id}@" + site_url + ".png"
|
2017-01-21 18:16:27 +00:00
|
|
|
var items_per_page = 25
|
2017-01-03 07:47:31 +00:00
|
|
|
|
|
|
|
var site_url = "localhost:8080"
|
|
|
|
var server_port = "8080"
|
|
|
|
var enable_ssl = false
|
|
|
|
var ssl_privkey = ""
|
|
|
|
var ssl_fullchain = ""
|
2016-12-16 10:37:42 +00:00
|
|
|
|
2017-01-26 13:37:50 +00:00
|
|
|
// Developer flags
|
2017-01-03 07:47:31 +00:00
|
|
|
var debug = false
|
2017-01-17 07:55:46 +00:00
|
|
|
var profiling = false
|
2017-01-26 13:37:50 +00:00
|
|
|
|