Skip to content

Commit

Permalink
Fix S3 development and production configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Leduc-Hamel committed Mar 11, 2021
1 parent e003c99 commit 9dea51f
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions pkg/app/trieugene.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ func NewTrieugeneStore(cfg *config.Config, kind string, key string, value string

func (t *trieugene) Run(ctx context.Context) error {
store := store.NewS3(&store.S3Params{
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
DisableSSL: true,
S3ForcePathStyle: true,
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
})

err := NewFaktory(t.cfg, store).Run(ctx)
Expand All @@ -59,11 +57,13 @@ func (t *trieugene) Run(ctx context.Context) error {

func (t *trieugeneDev) Run(ctx context.Context) error {
store := store.NewS3(&store.S3Params{
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
DisableSSL: true,
S3ForcePathStyle: true,
})

run(setupDevelopment(t.cfg))
Expand All @@ -77,11 +77,13 @@ func (t *trieugeneDev) Run(ctx context.Context) error {

func (t *trieugeneStore) Run(ctx context.Context) error {
store := store.NewS3(&store.S3Params{
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
AccessKey: t.cfg.S3AccessKey(),
SecretKey: t.cfg.S3SecretKey(),
URL: t.cfg.S3URL(),
Bucket: t.cfg.S3Bucket(),
Region: t.cfg.S3Region(),
DisableSSL: true,
S3ForcePathStyle: true,
})

run(setupDevelopment(t.cfg))
Expand Down

0 comments on commit 9dea51f

Please sign in to comment.