Introduce a new configuration to select the login background image URL

This commit is contained in:
Deluan
2020-04-07 16:58:55 -04:00
committed by Deluan Quintão
parent a0f389fc3e
commit db246900a6
3 changed files with 18 additions and 3 deletions
+3 -2
View File
@@ -30,8 +30,9 @@ func ServeIndex(ds model.DataStore, fs http.FileSystem) http.HandlerFunc {
}
t, _ = t.Parse(string(indexStr))
appConfig := map[string]interface{}{
"firstTime": firstTime,
"baseURL": strings.TrimSuffix(conf.Server.BaseURL, "/"),
"firstTime": firstTime,
"baseURL": strings.TrimSuffix(conf.Server.BaseURL, "/"),
"loginBackgroundURL": conf.Server.UILoginBackgroundURL,
}
j, _ := json.Marshal(appConfig)
data := map[string]interface{}{