starter module for nestjs
npm i @leadinvr/nestjs-starter
启动模块需要设置以下变量
/**
* StarterOption interface for configuring the NestJS application.
* It includes options for body parser limit, CORS, and an initialization function.
*/
export class StarterModuleOptions {
/**
* The URL for the Redis server.
*/
redisUrl: string = "";
/**
* The time-to-live (TTL) for Redis cache in seconds.
*/
redisTTL: number = 10; // Default TTL for Redis cache in seconds
/**
* The workspace name for Redis, default is "default".
*/
redisWorkspace: string = "default";
/**
* The secret for JWT tokens.
*/
jwtSecret: string = "jwt-secret";
/**
* The issuer for JWT tokens.
*/
jwtIssuer: string = "jwt-issuer";
/**
* The audience for JWT tokens.
*/
jwtAudience: string = "jwt-audience";
}
export async function startup(module: any, opt: StarterOption);