diff --git a/src/makeline-service/mongodb.go b/src/makeline-service/mongodb.go index 656c78bc..843d1689 100644 --- a/src/makeline-service/mongodb.go +++ b/src/makeline-service/mongodb.go @@ -49,10 +49,11 @@ func connectToMongoDB() (*mongo.Collection, error) { } else { clientOptions = options.Client().ApplyURI(mongoUri). SetAuth(options.Credential{ - Username: mongoUser, - Password: mongoPassword, + AuthSource: mongoDb, + Username: mongoUser, + Password: mongoPassword, }). - SetTLSConfig(&tls.Config{InsecureSkipVerify: true}) + SetTLSConfig(&tls.Config{InsecureSkipVerify: false}) } mongoClient, err := mongo.Connect(ctx, clientOptions) diff --git a/src/store-admin/vue.config.js b/src/store-admin/vue.config.js index 8f65590e..0fe86299 100644 --- a/src/store-admin/vue.config.js +++ b/src/store-admin/vue.config.js @@ -12,6 +12,8 @@ module.exports = defineConfig({ port: 8081, host: '0.0.0.0', allowedHosts: 'all', + client: false, + webSocketServer: false, setupMiddlewares: (middlewares, devServer) => { if (!devServer) { diff --git a/src/store-front/vue.config.js b/src/store-front/vue.config.js index ea48fdad..5a52d0ab 100644 --- a/src/store-front/vue.config.js +++ b/src/store-front/vue.config.js @@ -11,7 +11,8 @@ module.exports = defineConfig({ port: 8080, host: '0.0.0.0', allowedHosts: 'all', - + client: false, + webSocketServer: false, setupMiddlewares: (middlewares, devServer) => { if (!devServer) {