mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-08 04:12:40 +00:00
11 lines
277 B
TypeScript
11 lines
277 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
import { Config } from './config';
|
|
|
|
export interface AuthConfig extends Config {
|
|
encryptionAlgorithm: string;
|
|
}
|
|
|
|
export default registerAs('auth', () => ({
|
|
encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT',
|
|
}));
|