Skip to content

Commit

Permalink
default settings moved to app package
Browse files Browse the repository at this point in the history
  • Loading branch information
f1mishutka committed Apr 10, 2024
1 parent addd11a commit 62c9ab6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 10 additions & 0 deletions app/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ var (
App *goappbase.AppBase
Settings *AppSettingsType
)

func init() {
//default settings
Settings = &AppSettingsType{
GuiPassword: "mitoteam",
}

//default values for goappbase.AppSettingsBase options
Settings.WebserverPort = 15080
}
2 changes: 1 addition & 1 deletion goappbase
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ import (
)

func main() {
//default settings
app.Settings = &app.AppSettingsType{
GuiPassword: "mitoteam",
}
app.Settings.WebserverPort = 15080

//create app and set it up
app.App = goappbase.NewAppBase(app.Settings)

Expand Down

0 comments on commit 62c9ab6

Please sign in to comment.