forked from Yara724/api
Fix links
This commit is contained in:
@@ -22,7 +22,9 @@ export class EnvironmentVariables {
|
||||
message: "NODE_ENV should be development or production",
|
||||
})
|
||||
NODE_ENV: Environment;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@IsNumber(
|
||||
{
|
||||
allowNaN: false,
|
||||
@@ -36,7 +38,9 @@ export class EnvironmentVariables {
|
||||
@Min(0, { message: "PORT must be between 0 and 65535" })
|
||||
@Max(65535, { message: "PORT must be between 0 and 65535" })
|
||||
PORT: number;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@IsString({ message: "MONGO_URI must be string" })
|
||||
@IsUrl(
|
||||
{
|
||||
@@ -48,23 +52,32 @@ export class EnvironmentVariables {
|
||||
},
|
||||
)
|
||||
MONGO_URI: string;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@IsBooleanString({ message: "MONGO_TLS must be boolean" })
|
||||
MONGO_TLS: string;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@IsBooleanString({ message: "MONGO_TLS_ALLOW_INVALID_CERTS must be boolean" })
|
||||
MONGO_TLS_ALLOW_INVALID_CERTS: string;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@IsString({ message: "JWT_SECRET must be string" })
|
||||
@MinLength(32, {
|
||||
message: "JWT_SECRET must be at least 32 characters",
|
||||
})
|
||||
JWT_SECRET: string;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
|
||||
@Matches(/^\d+(ms|s|m|h|d|w|y)$/, {
|
||||
message: "JWT_EXPIRY must be in the correct format",
|
||||
})
|
||||
JWT_EXPIRY: StringValue;
|
||||
|
||||
// --------------------------------------------------------- //
|
||||
// @IsString({ message: "HASH_PEPPER must be string" })
|
||||
// @MinLength(32, {
|
||||
|
||||
Reference in New Issue
Block a user