|
|
@@ -50,7 +50,6 @@ var (
|
|
|
// App settings
|
|
|
AppVer string
|
|
|
APIVer string
|
|
|
- AppName string
|
|
|
AppURL string
|
|
|
AppSubURL string
|
|
|
AppSubURLDepth int // Number of slashes
|
|
|
@@ -439,7 +438,6 @@ func NewContext() {
|
|
|
forcePathSeparator(LogRootPath)
|
|
|
|
|
|
sec := Cfg.Section("server")
|
|
|
- AppName = Cfg.Section("").Key("APP_NAME").MustString("Gitote")
|
|
|
AppURL = sec.Key("ROOT_URL").MustString("http://localhost:3000/")
|
|
|
if AppURL[len(AppURL)-1] != '/' {
|
|
|
AppURL += "/"
|
|
|
@@ -798,7 +796,7 @@ func newLogService() {
|
|
|
}
|
|
|
|
|
|
// Make sure everyone gets version info printed.
|
|
|
- log.Info("%s %s", AppName, AppVer)
|
|
|
+ log.Info("%s %s", "Gitote", AppVer)
|
|
|
if !hasConsole {
|
|
|
log.Delete(log.CONSOLE)
|
|
|
}
|
|
|
@@ -862,7 +860,7 @@ func newMailService() {
|
|
|
|
|
|
MailService = &Mailer{
|
|
|
QueueLength: sec.Key("SEND_BUFFER_LEN").MustInt(100),
|
|
|
- SubjectPrefix: sec.Key("SUBJECT_PREFIX").MustString("[" + AppName + "] "),
|
|
|
+ SubjectPrefix: sec.Key("SUBJECT_PREFIX").MustString("[" + "Gitote" + "] "),
|
|
|
Host: sec.Key("HOST").String(),
|
|
|
User: sec.Key("USER").String(),
|
|
|
Passwd: sec.Key("PASSWD").String(),
|