Skip to content

Commit

Permalink
Changed main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
asharmah4h committed Feb 28, 2024
1 parent 7672aad commit 5507165
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/BuildandPushImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches:
- main
#- feat/ci-cd
- feat/ci-cd
workflow_dispatch:
jobs:
build-and-push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/DeployToAKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
push:
branches:
- main
- feat/ci-cd
#- feat/ci-cd
workflow_dispatch:

env:
Expand Down
7 changes: 4 additions & 3 deletions helm-charts/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ ingress:
className: "nginx"
port: 80
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /$2

hosts:
- host: "dev-api.infini-connect.devoteam.nl"
- host: "dev.infini-connect.devoteam.nl"
paths:
- path: /api
- path: /api(/|$)(.*)
pathType: Prefix
tls: []
# - secretName: chart-example-tls
Expand Down
3 changes: 2 additions & 1 deletion helm-charts/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ ingress:
port: 80
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /$2
hosts:
- host: "https://infini-connect.devoteam.nl"
paths:
- path: /api
- path: /api(/|$)(.*)
pathType: Prefix
tls: []
# - secretName: chart-example-tls
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function bootstrap() {
.addBearerAuth()
.build();
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('/docs', app, document);
SwaggerModule.setup('/api/docs', app, document);

await app.listen(8080);
}
Expand Down

0 comments on commit 5507165

Please sign in to comment.