Skip to content

Commit

Permalink
fix(config): sets FarmerURL as it is referenced by Jety in multiple p…
Browse files Browse the repository at this point in the history
…laces (#83)

* fix(config): sets FarmerURL as it is referenced by Jety in multiple places

* fix(config): removed FarmerURL from jety
  • Loading branch information
ethanholz authored Nov 3, 2023
1 parent ad29199 commit 40d5dde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func LoadConfig(binary string) {
jety.SetDefault("SproutRootCA", "/etc/grlx/pki/sprout/tls-rootca.pem")
jety.SetDefault("NKeySproutPubFile", "/etc/grlx/pki/sprout/sprout.nkey.pub")
jety.SetDefault("NKeySproutPrivFile", "/etc/grlx/pki/sprout/sprout.nkey")
jety.SetDefault("FarmerBusInterface", jety.GetString("FarmerURL")+":"+jety.GetString("FarmerBusPort"))
jety.SetDefault("FarmerBusInterface", FarmerInterface+":"+jety.GetString("FarmerBusPort"))
jety.SetDefault("CacheDir", "/var/cache/grlx/sprout/files/provided")
}
jety.WriteConfig()
Expand All @@ -185,7 +185,6 @@ func LoadConfig(binary string) {
FarmerBusPort = jety.GetString("FarmerBusPort")
FarmerInterface = jety.GetString("FarmerInterface")
FarmerPKI = jety.GetString("FarmerPKI")
FarmerURL = jety.GetString("FarmerURL")
GrlxRootCA = jety.GetString("GrlxRootCA")
KeyFile = jety.GetString("KeyFile")
NKeyFarmerPrivFile = jety.GetString("NKeyFarmerPrivFile")
Expand Down

0 comments on commit 40d5dde

Please sign in to comment.