21 lines
571 B
TypeScript
21 lines
571 B
TypeScript
import { ConfigService } from "@nestjs/config";
|
|
|
|
export function dkalaConfig() {
|
|
return {
|
|
inject: [ConfigService],
|
|
useFactory: async (configService: ConfigService) => {
|
|
return {
|
|
baseUrl: configService.get<string>("DKALA_BACKEND_URL")??'https://dkala-api.danakcorp.com',
|
|
username: configService.get<string>("DKALA_USERNAME")??'danak@dsc.com',
|
|
password: configService.get<string>("DKALA_PASSWORD")??'DsCdAnAk?@ABC',
|
|
};
|
|
},
|
|
};
|
|
}
|
|
|
|
export interface IDkalaConfig {
|
|
baseUrl: string;
|
|
username: string;
|
|
password: string;
|
|
}
|