ce9195c841
Updated the readme. Added more comments. The forumView cache for MemoryForumStore now excludes Social Groups. Moved the word filter logic into it's own file. You can now change the language via the configuration file. Moved the inline CSS into the CSS files.
60 lines
1.4 KiB
Go
60 lines
1.4 KiB
Go
package main
|
|
|
|
import "net/http"
|
|
|
|
var site = &Site{Name: "Magical Fairy Land", Language: "english"}
|
|
var dbConfig = DBConfig{Host: "localhost"}
|
|
var config Config
|
|
var dev DevConfig
|
|
|
|
type Site struct {
|
|
Name string // ? - Move this into the settings table?
|
|
Email string // ? - Move this into the settings table?
|
|
URL string
|
|
Port string
|
|
EnableSsl bool
|
|
EnableEmails bool
|
|
HasProxy bool
|
|
Language string // ? - Move this into the settings table?
|
|
}
|
|
|
|
type DBConfig struct {
|
|
Host string
|
|
Username string
|
|
Password string
|
|
Dbname string
|
|
Port string
|
|
}
|
|
|
|
type Config struct {
|
|
SslPrivkey string
|
|
SslFullchain string
|
|
|
|
MaxRequestSize int
|
|
CacheTopicUser int
|
|
UserCacheCapacity int
|
|
TopicCacheCapacity int
|
|
|
|
SmtpServer string
|
|
SmtpUsername string
|
|
SmtpPassword string
|
|
SmtpPort string
|
|
|
|
DefaultRoute func(http.ResponseWriter, *http.Request, User)
|
|
DefaultGroup int
|
|
ActivationGroup int
|
|
StaffCss string // ? - Move this into the settings table? Might be better to implement this as Group CSS
|
|
UncategorisedForumVisible bool
|
|
MinifyTemplates bool
|
|
MultiServer bool
|
|
|
|
Noavatar string // ? - Move this into the settings table?
|
|
ItemsPerPage int // ? - Move this into the settings table?
|
|
}
|
|
|
|
type DevConfig struct {
|
|
DebugMode bool
|
|
SuperDebug bool
|
|
Profiling bool
|
|
}
|