|
@ -11,10 +11,14 @@ export class ConfigurationService { |
|
|
public constructor() { |
|
|
public constructor() { |
|
|
this.environmentConfiguration = cleanEnv(process.env, { |
|
|
this.environmentConfiguration = cleanEnv(process.env, { |
|
|
ACCESS_TOKEN_SALT: str(), |
|
|
ACCESS_TOKEN_SALT: str(), |
|
|
ALPHA_VANTAGE_API_KEY: str({ default: '' }), |
|
|
API_KEY_ALPHA_VANTAGE: str({ default: '' }), |
|
|
|
|
|
API_KEY_BETTER_UPTIME: str({ default: '' }), |
|
|
API_KEY_COINGECKO_DEMO: str({ default: '' }), |
|
|
API_KEY_COINGECKO_DEMO: str({ default: '' }), |
|
|
API_KEY_COINGECKO_PRO: str({ default: '' }), |
|
|
API_KEY_COINGECKO_PRO: str({ default: '' }), |
|
|
BETTER_UPTIME_API_KEY: str({ default: '' }), |
|
|
API_KEY_EOD_HISTORICAL_DATA: str({ default: '' }), |
|
|
|
|
|
API_KEY_FINANCIAL_MODELING_PREP: str({ default: '' }), |
|
|
|
|
|
API_KEY_OPEN_FIGI: str({ default: '' }), |
|
|
|
|
|
API_KEY_RAPID_API: str({ default: '' }), |
|
|
CACHE_QUOTES_TTL: num({ default: 1 }), |
|
|
CACHE_QUOTES_TTL: num({ default: 1 }), |
|
|
CACHE_TTL: num({ default: 1 }), |
|
|
CACHE_TTL: num({ default: 1 }), |
|
|
DATA_SOURCE_EXCHANGE_RATES: str({ default: DataSource.YAHOO }), |
|
|
DATA_SOURCE_EXCHANGE_RATES: str({ default: DataSource.YAHOO }), |
|
@ -29,8 +33,6 @@ export class ConfigurationService { |
|
|
ENABLE_FEATURE_STATISTICS: bool({ default: false }), |
|
|
ENABLE_FEATURE_STATISTICS: bool({ default: false }), |
|
|
ENABLE_FEATURE_SUBSCRIPTION: bool({ default: false }), |
|
|
ENABLE_FEATURE_SUBSCRIPTION: bool({ default: false }), |
|
|
ENABLE_FEATURE_SYSTEM_MESSAGE: bool({ default: false }), |
|
|
ENABLE_FEATURE_SYSTEM_MESSAGE: bool({ default: false }), |
|
|
EOD_HISTORICAL_DATA_API_KEY: str({ default: '' }), |
|
|
|
|
|
FINANCIAL_MODELING_PREP_API_KEY: str({ default: '' }), |
|
|
|
|
|
GOOGLE_CLIENT_ID: str({ default: 'dummyClientId' }), |
|
|
GOOGLE_CLIENT_ID: str({ default: 'dummyClientId' }), |
|
|
GOOGLE_SECRET: str({ default: 'dummySecret' }), |
|
|
GOOGLE_SECRET: str({ default: 'dummySecret' }), |
|
|
GOOGLE_SHEETS_ACCOUNT: str({ default: '' }), |
|
|
GOOGLE_SHEETS_ACCOUNT: str({ default: '' }), |
|
@ -40,9 +42,7 @@ export class ConfigurationService { |
|
|
JWT_SECRET_KEY: str({}), |
|
|
JWT_SECRET_KEY: str({}), |
|
|
MAX_ACTIVITIES_TO_IMPORT: num({ default: Number.MAX_SAFE_INTEGER }), |
|
|
MAX_ACTIVITIES_TO_IMPORT: num({ default: Number.MAX_SAFE_INTEGER }), |
|
|
MAX_ITEM_IN_CACHE: num({ default: 9999 }), |
|
|
MAX_ITEM_IN_CACHE: num({ default: 9999 }), |
|
|
OPEN_FIGI_API_KEY: str({ default: '' }), |
|
|
|
|
|
PORT: port({ default: 3333 }), |
|
|
PORT: port({ default: 3333 }), |
|
|
RAPID_API_API_KEY: str({ default: '' }), |
|
|
|
|
|
REDIS_HOST: str({ default: 'localhost' }), |
|
|
REDIS_HOST: str({ default: 'localhost' }), |
|
|
REDIS_PASSWORD: str({ default: '' }), |
|
|
REDIS_PASSWORD: str({ default: '' }), |
|
|
REDIS_PORT: port({ default: 6379 }), |
|
|
REDIS_PORT: port({ default: 6379 }), |
|
|