I want to use @nestjs to manage configuration files.
Now I have used the following ways to connect mysql and redis.
// app.module.ts
import { Module } from '@nestjs/common'
import { SequelizeModule } from '@nestjs/sequelize'
import { RedisModule } from 'nestjs-redis'
import { ConfigModule } from '@nestjs/config'
import { ExampleModule } from './example/example.module'
import { UserModule } from './user/user.module'
import config from './config' // I want to use @nestjs/config instead it
@Module({
imports: [
SequelizeModule.forRoot(config.DATABASE),
RedisModule.register(config.REDIS),
UserModule,
ExampleModule,
ConfigModule.forRoot()
],
})
export class AppModule {}
Can I get their configuration information in appmodule via @ nestjs / config