Fix bind setting

The bind setting from the yaml file was not read. This commit fixes this
issue.
This commit is contained in:
Felix Niederwanger 2022-08-30 11:51:02 +02:00
parent 83047ef417
commit 7e56a15352
Signed by: phoenix
GPG key ID: 31860289A704FB3C
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ type Config struct {
}
type ConfigSettings struct {
BindAddress string // Bind address for the webserver
BindAddress string `yaml:"bind"` // Bind address for the webserver
}
type Hook struct {

View file

@ -2,7 +2,8 @@
## Weblug example config
settings:
bind: ":2088" # bind address for webserver
bind: "127.0.0.1:2088" # bind address for webserver
#bind: ":2088" # bind to all addresses
# hook definition. A hook needs to define the HTTP endpoint ("route") and the
# command that will be executed, once this route is executed