Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
Signed-off-by: Janos <[email protected]>
  • Loading branch information
Janos committed Aug 27, 2024
1 parent 9ce5762 commit f59e54f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func getBackend(ctx context.Context, log logger.Logger, registryDir string, work
backingStorage, err = s3storage.New(
ctx,
s3storage.WithBucket(s3Params.Bucket),
//s3storage.WithRegion(s3Params.Region),
s3storage.WithRegion(s3Params.Region),
s3storage.WithEndpoint(s3Params.Endpoint),
s3storage.WithTLSConfig(&tls.Config{
RootCAs: tlsPool,
Expand Down
2 changes: 2 additions & 0 deletions backend/internal/indexstorage/s3storage/direct_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package s3storage_test

import (
"context"
"crypto/tls"
"crypto/x509"
"os"
Expand All @@ -20,6 +21,7 @@ func TestDirect(t *testing.T) {
certPool := x509.NewCertPool()
certPool.AppendCertsFromPEM(aws.CACert())
storage := tofutestutils.Must2(s3storage.New(
context.Background(),
s3storage.WithBucket(aws.S3Bucket()),
s3storage.WithAccessKey(aws.AccessKey()),
s3storage.WithSecretKey(aws.SecretKey()),
Expand Down

0 comments on commit f59e54f

Please sign in to comment.