import * as dotenv from 'dotenv' ; dotenv . config ( ) ; const NODE_ENV = process . env . NODE_ENV || 'development' ; const AUTHOR = process . env . AUTHOR || 'Chnirt' ; const DOMAIN = process . env . DOMAIN || 'localhost' ; const PORT = + process . env . PORT || 14047 ; const END_POINT = process . env . END_POINT || 'graphql' ; const VOYAGER = process . env . VOYAGER || 'voyager' ; const FE_URL = process . env . FE_URL || 'xxx' ; const RATE_LIMIT_MAX = + process . env . RATE_LIMIT_MAX || 10000 ; const GRAPHQL_DEPTH_LIMIT = + process . env . GRAPHQL_DEPTH_LIMIT || 3 ; const STATIC = process . env . STATIC || 'static' ; const SSL = process . env . SSL || '.well-known/acme-challenge' ; const MLAB_USER = process . env . MLAB_USER || 'admin' ; const MLAB_PASS = process . env . MLAB_PASS || 'chnirt1803' ; const MLAB_HOST = process . env . MLAB_HOST || 'ds243055.mlab.com' ; const MLAB_PORT = + process . env . MLAB_PORT || 43055 ; const MLAB_DATABASE = process . env . MLAB_DATABASE || 'nestjs-restful-best-practice' ; const MLAB_URL = process . env . MLAB_URL || `mongodb://${ MLAB_USER }:${ MLAB_PASS }@${ MLAB_HOST }:${ MLAB_PORT }/${ MLAB_DATABASE }` ; const MONGO_URL = process . env . MONGO_PORT ? `mongodb://localhost:${ process . env . MONGO_PORT }` : MLAB_URL ; const MONGO_PORT = + process . env . MONGO_PORT || 11049 ; const MONGO_DB = process . env . MONGO_PORT ? 'chnirt-nest' : MLAB_DATABASE ; const ISSUER = process . env . ISSUER || 'http://chnirt.github.io' ; const ACCESS_TOKEN = process . env . ACCESS_TOKEN || 'access-token' ; const ACCESS_TOKEN_SECRET = process . env . ACCESS_TOKEN_SECRET || 'basic' ; const REFRESH_TOKEN = process . env . REFRESH_TOKEN || 'refresh-token' ; const REFRESH_TOKEN_SECRET = process . env . REFRESH_TOKEN_SECRET || 'refresh-token-key' ; const EMAIL_TOKEN = process . env . EMAIL_TOKEN || 'email-token' ; const EMAIL_TOKEN_SECRET = process . env . EMAIL_TOKEN_SECRET || 'email-token-key' ; const RESETPASS_TOKEN = process . env . RESETPASS_TOKEN || 'resetpass-token' ; const RESETPASS_TOKEN_SECRET = process . env . RESETPASS_TOKEN_SECRET || 'resetpass-token-key' ; const SALT = + process . env . SALT || 10 ; const MAIL_USER = process . env . MAIL_USER || 'xxx' ; const MAIL_PASS = process . env . MAIL_PASS || 'xxx' ; const CLOUD_NAME = process . env . CLOUD_NAME || 'xxx' ; const API_KEY = process . env . API_KEY || 'xxx' ; const API_SECRET = process . env . API_SECRET || 'xxx' ; const SPEAKEASY_SECRET = process . env . SPEAKEASY_SECRET || 'speakeasy-secret' ; const SPEAKEASY_DIGITS = + process . env . SPEAKEASY_DIGITS || 6 ; const SPEAKEASY_STEP = + process . env . SPEAKEASY_STEP || 60 ; const NOTIFICATION_SUBSCRIPTION = 'newNotification' ; const USER_SUBSCRIPTION = 'newUser' ; const MESSAGES_SUBSCRIPTION = 'newMessages' ; const GOOGLE_CLIENT_ID = process . env . GOOGLE_CLIENT_ID || 'xxx' ; const GOOGLE_CLIENT_SECRET = process . env . GOOGLE_CLIENT_SECRET || 'xxx' ; const GOOGLE_CALLBACK_URL = process . env . GOOGLE_CALLBACK_URL || 'auth/google/callback' ; const FACEBOOK_APP_ID = process . env . FACEBOOK_APP_ID || 'xxx' ; const FACEBOOK_APP_SECRET = process . env . FACEBOOK_APP_SECRET || 'xxx' ; const FACEBOOK_CALLBACK_URL = process . env . FACEBOOK_CALLBACK_URL || 'auth/facebook/callback' ; const GOOGLE_APPLICATION_CREDENTIALS = process . env . GOOGLE_APPLICATION_CREDENTIALS || 'xxx' ; const STRIPE_PUBLIC_KEY = process . env . STRIPE_PUBLIC_KEY || 'xxx' ; const STRIPE_SECRET_KEY = process . env . STRIPE_SECRET_KEY || 'xxx' ; const STRIPE_PLAN = process . env . STRIPE_PLAN || 'xxx' ; const TWILIO_ACCOUNT_SID = process . env . TWILIO_ACCOUNT_SID || 'xxx' ; const TWILIO_AUTH_TOKEN = process . env . TWILIO_AUTH_TOKEN || 'xxx' ; export { NODE_ENV , AUTHOR , DOMAIN , PORT , END_POINT , VOYAGER , FE_URL , RATE_LIMIT_MAX , GRAPHQL_DEPTH_LIMIT , STATIC , SSL , MLAB_USER , MLAB_PASS , MLAB_HOST , MLAB_PORT , MLAB_DATABASE , MLAB_URL , MONGO_URL , MONGO_PORT , MONGO_DB , ISSUER , ACCESS_TOKEN , ACCESS_TOKEN_SECRET , REFRESH_TOKEN , REFRESH_TOKEN_SECRET , RESETPASS_TOKEN , RESETPASS_TOKEN_SECRET , EMAIL_TOKEN , EMAIL_TOKEN_SECRET , SALT , MAIL_USER , MAIL_PASS , CLOUD_NAME , API_KEY , API_SECRET , SPEAKEASY_SECRET , SPEAKEASY_DIGITS , SPEAKEASY_STEP , USER_SUBSCRIPTION , NOTIFICATION_SUBSCRIPTION , MESSAGES_SUBSCRIPTION , GOOGLE_CLIENT_ID , GOOGLE_CLIENT_SECRET , GOOGLE_CALLBACK_URL , FACEBOOK_APP_ID , FACEBOOK_APP_SECRET , FACEBOOK_CALLBACK_URL , GOOGLE_APPLICATION_CREDENTIALS , STRIPE_PUBLIC_KEY , STRIPE_SECRET_KEY , STRIPE_PLAN , TWILIO_ACCOUNT_SID , TWILIO_AUTH_TOKEN } ;