33c2f4ccb0
Added support for SSL. Added the email system. Not fully tested. Added Email Verification. Added the Emails Page in the Account Manager. Email Activation is now fully supported. Fixed CustomErrorJSQ() and added CustomError(). Added commented out tests for Vestigo. Added tests for the new (possibly temporary) custom router. Swapped some of the custom error blocks for the Account Manager with LocalError calls. Moved the account menu into it's own template.
35 lines
971 B
Go
35 lines
971 B
Go
package main
|
|
|
|
// Database details
|
|
var dbhost = "127.0.0.1"
|
|
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 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 = 40 // Should be a setting
|
|
|
|
var site_url = "localhost:8080"
|
|
var server_port = "8080"
|
|
var enable_ssl = false
|
|
var ssl_privkey = ""
|
|
var ssl_fullchain = ""
|
|
|
|
// Developer flag
|
|
var debug = false
|