Skip to content

Commit

Permalink
adding a load balancer with a domain rndplatform.juriba.info
Browse files Browse the repository at this point in the history
  • Loading branch information
JuribaDev committed Aug 31, 2024
1 parent 0d73b6e commit 0ff468b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
--max-instances 3
--min-instances 1
--concurrency 80
--ingress internal
--allow-unauthenticated
timeout: 600s

- name: Deploy Client to Cloud Run
Expand All @@ -97,6 +97,6 @@ jobs:
--max-instances 3
--min-instances 1
--concurrency 100
--ingress internal
timeout: 600s
--allow-unauthenticated
timeout: 600s
7 changes: 1 addition & 6 deletions apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AppModule } from './app.module';
import mongoose from 'mongoose';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create(AppModule,{cors:true});
app.useGlobalPipes(new ValidationPipe({
whitelist: true,
forbidNonWhitelisted: true,
Expand All @@ -21,11 +21,6 @@ async function bootstrap() {
}));
const globalPrefix = 'api/v1';
app.setGlobalPrefix(globalPrefix);
app.enableCors({
origin: ['https://34.1.32.26', 'https://rndplatform.juriba.info'],
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
credentials: true,
});

const port = process.env.PORT || 3000;
await app.listen(port);
Expand Down

0 comments on commit 0ff468b

Please sign in to comment.