Skip to content

Commit

Permalink
hot fix: factory needs to override encryption settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 24, 2023
1 parent 552f5db commit b9acf4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions machinery/src/config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ func OpenConfig(configDirectory string, configuration *models.Configuration) {
conjungo.Merge(&s3, configuration.CustomConfig.S3, opts)
configuration.Config.S3 = &s3

// Merge Encryption settings
var encryption models.Encryption
conjungo.Merge(&encryption, configuration.GlobalConfig.Encryption, opts)
conjungo.Merge(&encryption, configuration.CustomConfig.Encryption, opts)
configuration.Config.Encryption = &encryption

// Merge timetable manually because it's an array
configuration.Config.Timetable = configuration.CustomConfig.Timetable

Expand Down

0 comments on commit b9acf4c

Please sign in to comment.