Skip to content

Commit

Permalink
fix(api): use secure in files endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Aug 23, 2023
1 parent 1cca584 commit f0dc9fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/internal/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func NewFiles(opts Opts) handlers.IHandler {
&minio.Options{
Creds: credentials.NewStaticV4(opts.Config.S3AccessToken, opts.Config.S3SecretToken, ""),
Region: opts.Config.S3Region,
Secure: opts.Config.AppEnv == "production",
},
)
if err != nil {
Expand Down

0 comments on commit f0dc9fd

Please sign in to comment.