Skip to content

Commit 886158f

Browse files
Remove host option from the Swagger configuration
1 parent 76e5af6 commit 886158f

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

docker-compose.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ services:
1414
- 3000:3000
1515
environment:
1616
HOST: 0.0.0.0
17-
SWAGGER_HOST: localhost
1817
DB_HOST: mongodb://node-api-boilerplate-mongodb:27017
1918

2019
mongodb:

src/_boot/swagger.ts

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ type SwaggerConfig = {
77
swagger: {
88
title: string;
99
version: string;
10-
host: string;
1110
basePath: string;
1211
docEndpoint: string;
1312
};
@@ -20,7 +19,6 @@ const swagger = makeModule('swagger', async ({ container: { build }, config: { h
2019
title: swagger.title,
2120
version: swagger.version,
2221
},
23-
host: `${swagger.host}:${http.port}`,
2422
basePath: swagger.basePath,
2523
},
2624
apis: [resolve(__dirname, '../**/interface/http/**/*.yaml'), resolve(__dirname, '../**/interface/http/**/*.ts')],

src/config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const config: Configuration = {
2121
swagger: {
2222
title: 'Blog API',
2323
version: '1.0.0',
24-
host: envString('SWAGGER_HOST', envString('HOST', 'localhost')),
2524
basePath: '/api',
2625
docEndpoint: '/api-docs',
2726
},

0 commit comments

Comments
 (0)