feature: Customizable external rest address

This commit is contained in:
jamesread
2022-04-05 11:06:41 +01:00
parent 63068dfdea
commit a725b377cc
3 changed files with 6 additions and 10 deletions
+2 -8
View File
@@ -44,16 +44,10 @@ func findWebuiDir() string {
}
func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
restAddress := ""
if !cfg.UseSingleHTTPFrontend {
restAddress = cfg.ExternalRestAddress
}
jsonRet, _ := json.Marshal(webUISettings{
Rest: restAddress + "/api/",
Rest: cfg.ExternalRestAddress + "/api/",
ThemeName: cfg.ThemeName,
ShowFooter: cfg.ShowFooter,
ShowFooter: cfg.ShowFooter,
ShowNavigation: cfg.ShowNavigation,
ShowNewVersions: cfg.ShowNewVersions,
AvailableVersion: updatecheck.AvailableVersion,