mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Путь к сертификатам теперь воспринимается как полный, а не относительный.
This commit is contained in:
@@ -5,16 +5,13 @@ import { PartialValidationPipe } from "./utility/validation/partial-validation.p
|
||||
import { ClassValidatorInterceptor } from "./utility/validation/class-validator.interceptor";
|
||||
import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger";
|
||||
import { apiConstants, httpsConstants } from "./contants";
|
||||
import * as path from "node:path";
|
||||
import * as fs from "node:fs";
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule, {
|
||||
httpsOptions: {
|
||||
cert: fs.readFileSync(
|
||||
path.join(__dirname, httpsConstants.certPath),
|
||||
),
|
||||
key: fs.readFileSync(path.join(__dirname, httpsConstants.keyPath)),
|
||||
cert: fs.readFileSync(httpsConstants.certPath),
|
||||
key: fs.readFileSync(httpsConstants.keyPath),
|
||||
},
|
||||
});
|
||||
const validatorOptions: ValidatorOptions = {
|
||||
|
||||
Reference in New Issue
Block a user