mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
revert to previous version behavior of setting hub.appURL (#1148)
- remove fallback that sets appUrl to settings.Meta.AppURL - prefer using current browser URL in generated config if APP_URL not set
This commit is contained in:
@@ -112,8 +112,6 @@ func (h *Hub) initialize(e *core.ServeEvent) error {
|
||||
// set URL if BASE_URL env is set
|
||||
if h.appURL != "" {
|
||||
settings.Meta.AppURL = h.appURL
|
||||
} else {
|
||||
h.appURL = settings.Meta.AppURL
|
||||
}
|
||||
if err := e.App.Save(settings); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user