2016-12-02 08:07:56 +00:00
|
|
|
package main
|
|
|
|
|
2017-05-07 08:31:41 +00:00
|
|
|
// Site Info
|
|
|
|
var site_name = "Test Install" // Should be a setting in the database
|
|
|
|
var site_url = "localhost:8080"
|
|
|
|
var server_port = "8080"
|
|
|
|
var enable_ssl = false
|
|
|
|
var ssl_privkey = ""
|
|
|
|
var ssl_fullchain = ""
|
|
|
|
|
2016-12-02 08:07:56 +00:00
|
|
|
// 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
|
|
|
|
|
2017-05-07 08:31:41 +00:00
|
|
|
// Caching
|
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
|
2017-03-15 08:34:14 +00:00
|
|
|
|
2017-05-07 08:31:41 +00:00
|
|
|
// Email
|
|
|
|
var site_email = "" // Should be a setting in the database
|
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-03-16 05:06:58 +00:00
|
|
|
var smtp_port = "25"
|
2017-05-07 08:31:41 +00:00
|
|
|
var enable_emails = false
|
|
|
|
|
|
|
|
// Misc
|
|
|
|
var default_route = route_topics
|
|
|
|
var default_group = 3 // Should be a setting in the database
|
|
|
|
var activation_group = 5 // Should be a setting in the database
|
|
|
|
var staff_css = " background-color: #ffeaff;"
|
|
|
|
var uncategorised_forum_visible = true
|
|
|
|
var minify_templates = true
|
2017-03-15 08:34:14 +00:00
|
|
|
|
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
|
|
|
|
2017-01-26 13:37:50 +00:00
|
|
|
// Developer flags
|
2017-01-03 07:47:31 +00:00
|
|
|
var debug = false
|
2017-05-07 08:31:41 +00:00
|
|
|
var super_debug = false
|
2017-01-17 07:55:46 +00:00
|
|
|
var profiling = false
|