@Module({
imports: [
ElasticTranscoderModule.forRoot({
accessKeyId: '',
region: '',
secretAccessKey: ''
})
]
})
export class AppModule {}
@Module({
imports: [
ElasticTranscoderModule.forRootAsync({
imports: [ConfigModule.forFeature(elasticTranscoderLoader)],
inject: [ConfigService],
useFactory(configService: ConfigService) {
return {
accessKeyId: configService.get('accessKeyId'),
region: configService.get('region'),
secretAccessKey: configService.get('secretAccessKey')
};
}
})
]
})
export class AppModule {}
@Module({
imports: [
ElasticTranscoderModule.forFeature()
]
})
export class VideosModule {}