Commit 19e55042 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add dotenv in configService

parent 06ce38ff
Pipeline #2438 passed with stages
in 19 seconds
import * as dotenv from 'dotenv';
import { config } from './config';
export class ConfigService {
private _config = config;
constructor() {
dotenv.config();
// Initializing conf with values from var env
this._config.smtpConfig.host = process.env.SMTP_HOST;
this._config.smtpConfig.port = process.env.SMTP_PORT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment