2
0
Эх сурвалжийг харах

change enabled key to match rest of config

Jordan Schalm 8 жил өмнө
parent
commit
1da6c641af

+ 1 - 1
README.md

@@ -231,7 +231,7 @@ Copy goguerrilla.conf.sample to goguerrilla.conf
                 "primary_mail_host":"sharklasers.com"
             },
         "dashboard": {
-            "enabled": true,
+            "is_enable": true,
             "listen_interface": ":8080", // Where the dashboard will be accessible
             "tick_interval": "5s", // Interval at which data is measured, parseable by time.ParseDuration
             "max_window": "24h", // Maximum interval to keep data

+ 1 - 1
dashboard/dashboard.go

@@ -25,7 +25,7 @@ var upgrader = websocket.Upgrader{
 }
 
 type Config struct {
-	Enabled         bool   `json:"enabled"`
+	Enabled         bool   `json:"is_enabled"`
 	ListenInterface string `json:"listen_interface"`
 	// Interval at which we send measure and send dataframe to frontend
 	TickInterval string `json:"tick_interval"`

+ 1 - 1
goguerrilla.conf.sample

@@ -14,7 +14,7 @@
         "log_received_mails": true
     },
     "dashboard": {
-      "enabled": true,
+      "is_enabled": true,
       "listen_interface": ":8080",
       "tick_interval": "5s",
       "max_window": "24h",