diff --git a/.env.exemple b/.env.exemple index 39c9922..8867148 100644 --- a/.env.exemple +++ b/.env.exemple @@ -35,6 +35,6 @@ DECLINED= 4000 0025 0000 3155 #Paiement refusé # Configuration serveur APP_HOST= -PORT= +BACK_PORT= API_BASE_URL= DEFAULT_STORAGE= diff --git a/src/config/email.ts b/src/config/email.ts index b93c854..dc64cc6 100644 --- a/src/config/email.ts +++ b/src/config/email.ts @@ -2,7 +2,7 @@ export const emailConfig = { MAILCHIMP_API_KEY: process.env.MAILCHIMP_API_KEY, MAILCHIMP_KEY: process.env.MAILCHIMP_KEY, MAILCHIMP_LIST_ID: process.env.MAILCHIMP_LIST_ID, - PORT: parseInt(process.env.PORT || '8080'), + PORT: parseInt(process.env.BACK_PORT || '8080'), FROM_EMAIL: 'no-reply@lecoffre.io', FROM_NAME: 'LeCoffre.io' }; diff --git a/src/config/index.ts b/src/config/index.ts index 8a2bc56..d8bb3bb 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -2,7 +2,7 @@ import * as dotenv from 'dotenv'; dotenv.config(); export const config = { - port: process.env.PORT || "", + port: process.env.BACK_PORT || "", defaultStorage: process.env.DEFAULT_STORAGE || "", appHost: process.env.APP_HOST || "", diff --git a/src/config/sms.ts b/src/config/sms.ts index d679d65..a8aaed8 100644 --- a/src/config/sms.ts +++ b/src/config/sms.ts @@ -8,5 +8,5 @@ export const smsConfig = { // SMS Factor config SMS_FACTOR_TOKEN: process.env.SMS_FACTOR_TOKEN, - PORT: parseInt(process.env.PORT || '8080') + PORT: parseInt(process.env.BACK_PORT || '8080') };