forked from Yara724/api
Added Joi for schema validation, tidied up envs
This commit is contained in:
@@ -39,9 +39,9 @@ async function bootstrap() {
|
||||
.split(":");
|
||||
const password = rest.join(":");
|
||||
|
||||
const expectedUser = configService.get<string>("SWAGGER_USER", "");
|
||||
const expectedUser = configService.get<string>("SWAGGER_USER_DEV", "");
|
||||
const expectedPassword = configService.get<string>(
|
||||
"SWAGGER_PASSWORD",
|
||||
"SWAGGER_PASSWORD_DEV",
|
||||
"",
|
||||
);
|
||||
|
||||
@@ -59,7 +59,7 @@ async function bootstrap() {
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle("yara724-backend")
|
||||
.setVersion("1.0.0")
|
||||
.addServer(process.env.BASE_URL + "/api")
|
||||
.addServer(process.env.BASE_URL_DEV + "/api")
|
||||
.addServer("http://192.168.20.170:9001")
|
||||
.addServer("http://localhost:9001")
|
||||
.addBearerAuth()
|
||||
|
||||
Reference in New Issue
Block a user