Skip to content
Snippets Groups Projects
Commit e6a2bc4b authored by George Falileev's avatar George Falileev
Browse files

set ssl mongo connection

parent 5972d7d6
No related merge requests found
......@@ -3,6 +3,7 @@ package mongo
import (
"context"
"crypto/tls"
"fmt"
"go.mongodb.org/mongo-driver/bson"
......@@ -81,7 +82,7 @@ func NewRepository(ctx context.Context, config *Config) (model.Repository, error
Username: config.Username,
Password: config.Password,
PasswordSet: true,
}),
}).SetTLSConfig(&tls.Config{}),
)
if err != nil {
return nil, err
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment