فهرست منبع

Entities, config comment

jamesread 4 سال پیش
والد
کامیت
5d125bb39c
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 1
      internal/config/config.go
  2. 3 1
      var/config.yaml

+ 1 - 1
internal/config/config.go

@@ -49,7 +49,7 @@ type Config struct {
 	ExternalRestAddress             string
 	LogLevel                        string
 	ActionButtons                   []ActionButton `mapstructure:"actions"`
-	Entities                        []Entity       `mapstructure:"omitempty"`
+	Entities                        []Entity       `mapstructure:"entities"`
 	CheckForUpdates                 bool
 	Usergroups						[]UserGroup
 	DefaultPermissions				DefaultPermissions

+ 3 - 1
var/config.yaml

@@ -1,7 +1,9 @@
 # There is a built-in micro proxy that will host the webui and REST API all on 
 # one port (this is called the "Single HTTP Frontend") and means you just need 
 # one open port in the container/firewalls/etc. 
-ListenAddressSingleHTTPFrontend: 0.0.0.0:1337 # Listen on all addresses available, port 1337
+#
+# Listen on all addresses available, port 1337
+listenAddressSingleHTTPFrontend: 0.0.0.0:1337 
 
 # Choose from INFO (default), WARN and DEBUG
 logLevel: "INFO"