Yeuoly před 1 rokem
rodič
revize
1c8326a716
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      internal/static/config.go

+ 5 - 0
internal/static/config.go

@@ -48,6 +48,11 @@ func InitConfig(path string) error {
 		difySandboxGlobalConfigurations.WorkerTimeout, _ = strconv.Atoi(timeout)
 	}
 
+	api_key := os.Getenv("API_KEY")
+	if api_key != "" {
+		difySandboxGlobalConfigurations.App.Key = api_key
+	}
+
 	return nil
 }