|
|
@@ -24,10 +24,12 @@ type AppConfig struct {
|
|
|
}
|
|
|
|
|
|
type FwhApiConfig struct {
|
|
|
- FwhEnergy string
|
|
|
- FwhOss string
|
|
|
- FwhUser string
|
|
|
- FwhPassword string
|
|
|
+ FwhEnergy string
|
|
|
+ FwhOss string
|
|
|
+ FwhUser string
|
|
|
+ FwhPassword string
|
|
|
+ FwhTotpSecret string
|
|
|
+ FwhTotpField string
|
|
|
}
|
|
|
|
|
|
type FwhMqttConfig struct {
|
|
|
@@ -61,13 +63,13 @@ type PlaneApiConfig struct {
|
|
|
}
|
|
|
|
|
|
type PlaneWebApiConfig struct {
|
|
|
- Host string
|
|
|
- Email string
|
|
|
- Password string
|
|
|
- WorkspaceSlug string
|
|
|
- ProjectId string
|
|
|
- LabelBugId string
|
|
|
- LabelFeatureId string
|
|
|
+ Host string
|
|
|
+ Email string
|
|
|
+ Password string
|
|
|
+ WorkspaceSlug string
|
|
|
+ ProjectId string
|
|
|
+ LabelBugId string
|
|
|
+ LabelFeatureId string
|
|
|
LabelFeedbackId string
|
|
|
}
|
|
|
|
|
|
@@ -89,7 +91,7 @@ type KiroConfig struct {
|
|
|
type Config struct {
|
|
|
App AppConfig
|
|
|
FwhApi FwhApiConfig
|
|
|
- FwhTestApi FwhApiConfig
|
|
|
+ FwhTestApi FwhApiConfig
|
|
|
FwhMqtt FwhMqttConfig
|
|
|
FwhTestMqtt FwhMqttConfig
|
|
|
FwhEs FwhEsConfig
|
|
|
@@ -188,10 +190,12 @@ func LoadConfig(configPaths ...string) (*Config, error) {
|
|
|
AsynqmonPort: v.GetString("ASYNQMON_PORT"),
|
|
|
},
|
|
|
FwhApi: FwhApiConfig{
|
|
|
- FwhEnergy: v.GetString("FWH_ENERGY"),
|
|
|
- FwhOss: v.GetString("FWH_OSS"),
|
|
|
- FwhUser: v.GetString("FWH_USER"),
|
|
|
- FwhPassword: fwhApiPassword,
|
|
|
+ FwhEnergy: v.GetString("FWH_ENERGY"),
|
|
|
+ FwhOss: v.GetString("FWH_OSS"),
|
|
|
+ FwhUser: v.GetString("FWH_USER"),
|
|
|
+ FwhPassword: fwhApiPassword,
|
|
|
+ FwhTotpSecret: v.GetString("FWH_TOTP_SECRET"),
|
|
|
+ FwhTotpField: v.GetString("FWH_TOTP_FIELD"),
|
|
|
},
|
|
|
FwhTestApi: FwhApiConfig{
|
|
|
FwhEnergy: v.GetString("FWH_TEST_ENERGY"),
|