skip to Main Content

What should be the host name in nestjs hybrid microservice when deployed on Kubernetes – Nginx

Tech stack - nestjs - 2 microservice kubernetes - AWS EKS Ingress - nginx Hybrid const app = await NestFactory.create(AppModule); const microservice = app.connectMicroservice<MicroserviceOptions>( { transport: Transport.TCP, options: { host: process.env.TCP_HOST, port: parseInt(process.env.TCP_EVALUATION_PORT), }, }, { inheritAppConfig: true }, );…

VIEW QUESTION

Mongodb – how to solve the error MongoServerError: E11000 duplicate key error collection: test.admins index: status_1 dup key: { status: "true" }

here is my shcema file. name:{type:String,unique:true,required:true}, email:{type:String,unique:true,required:true}, userName:{type:String,unique:true,required:true}, password:{type:String,unique:true,required:true}, status:{type:String,unique:true,default:true} },{timestamps:true}) And i'm converting the password in to bcrypt

VIEW QUESTION
Back To Top
Search