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 30, 2024
1 parent e3078f1 commit 0d73b6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ jobs:
--max-instances 3
--min-instances 1
--concurrency 100
--allow-unauthenticated
--ingress internal
timeout: 600s

# If required, use the Cloud Run URL outputs in later steps
- name: Show Client URL
run: echo ${{ steps.deploy-client.outputs.url }}

- name: Show Server URL
run: echo ${{ steps.deploy-server.outputs.url }}
6 changes: 5 additions & 1 deletion apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ async function bootstrap() {
}));
const globalPrefix = 'api/v1';
app.setGlobalPrefix(globalPrefix);
app.enableCors();
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 0d73b6e

Please sign in to comment.