2024-02-28 17:02:46 +08:00
|
|
|
import { AppConfig, IAppConfig, appRegToken } from './app.config';
|
|
|
|
import { DatabaseConfig, IDatabaseConfig, dbRegToken } from './database.config';
|
|
|
|
import { IMailerConfig, MailerConfig, mailerRegToken } from './mailer.config';
|
|
|
|
import { IOssConfig, OssConfig, ossRegToken } from './oss.config';
|
|
|
|
import { IRedisConfig, RedisConfig, redisRegToken } from './redis.config';
|
|
|
|
import { ISecurityConfig, SecurityConfig, securityRegToken } from './security.config';
|
|
|
|
import { ISwaggerConfig, SwaggerConfig, swaggerRegToken } from './swagger.config';
|
2024-02-28 08:32:35 +08:00
|
|
|
|
2024-02-28 17:02:46 +08:00
|
|
|
export * from './app.config';
|
|
|
|
export * from './redis.config';
|
|
|
|
export * from './database.config';
|
|
|
|
export * from './swagger.config';
|
|
|
|
export * from './security.config';
|
|
|
|
export * from './mailer.config';
|
|
|
|
export * from './oss.config';
|
2024-02-28 08:32:35 +08:00
|
|
|
|
|
|
|
export interface AllConfigType {
|
2024-02-28 17:02:46 +08:00
|
|
|
[appRegToken]: IAppConfig;
|
|
|
|
[dbRegToken]: IDatabaseConfig;
|
|
|
|
[mailerRegToken]: IMailerConfig;
|
|
|
|
[redisRegToken]: IRedisConfig;
|
|
|
|
[securityRegToken]: ISecurityConfig;
|
|
|
|
[swaggerRegToken]: ISwaggerConfig;
|
|
|
|
[ossRegToken]: IOssConfig;
|
2024-02-28 08:32:35 +08:00
|
|
|
}
|
|
|
|
|
2024-02-28 17:02:46 +08:00
|
|
|
export type ConfigKeyPaths = RecordNamePaths<AllConfigType>;
|
2024-02-28 08:32:35 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
AppConfig,
|
|
|
|
DatabaseConfig,
|
|
|
|
MailerConfig,
|
|
|
|
OssConfig,
|
|
|
|
RedisConfig,
|
|
|
|
SecurityConfig,
|
2024-02-29 09:29:03 +08:00
|
|
|
SwaggerConfig
|
2024-02-28 17:02:46 +08:00
|
|
|
};
|