|
|
|
@ -3,7 +3,7 @@ import { DEFAULT_ROOT_URL } from '@ghostfolio/common/config';
|
|
|
|
|
|
|
|
|
|
import { Injectable } from '@nestjs/common';
|
|
|
|
|
import { DataSource } from '@prisma/client';
|
|
|
|
|
import { bool, cleanEnv, host, json, num, port, str } from 'envalid';
|
|
|
|
|
import { bool, cleanEnv, host, json, num, port, str, url } from 'envalid';
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
|
export class ConfigurationService {
|
|
|
|
@ -48,14 +48,13 @@ export class ConfigurationService {
|
|
|
|
|
REDIS_PASSWORD: str({ default: '' }),
|
|
|
|
|
REDIS_PORT: port({ default: 6379 }),
|
|
|
|
|
REQUEST_TIMEOUT: num({ default: 2000 }),
|
|
|
|
|
ROOT_URL: str({ default: DEFAULT_ROOT_URL }),
|
|
|
|
|
ROOT_URL: url({ default: DEFAULT_ROOT_URL }),
|
|
|
|
|
STRIPE_PUBLIC_KEY: str({ default: '' }),
|
|
|
|
|
STRIPE_SECRET_KEY: str({ default: '' }),
|
|
|
|
|
TWITTER_ACCESS_TOKEN: str({ default: 'dummyAccessToken' }),
|
|
|
|
|
TWITTER_ACCESS_TOKEN_SECRET: str({ default: 'dummyAccessTokenSecret' }),
|
|
|
|
|
TWITTER_API_KEY: str({ default: 'dummyApiKey' }),
|
|
|
|
|
TWITTER_API_SECRET: str({ default: 'dummyApiSecret' }),
|
|
|
|
|
WEB_AUTH_RP_ID: host({ default: 'localhost' })
|
|
|
|
|
TWITTER_API_SECRET: str({ default: 'dummyApiSecret' })
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|