change coingecko and kraken rate fetch timeout config name
This commit is contained in:
+2
-2
@@ -80,10 +80,10 @@ SIGNED_COOKIE_THEME_NAME=storefront_theme
|
|||||||
SIGNED_COOKIE_THEME_EXPIRES_IN_MS=31536000000 # 365 days
|
SIGNED_COOKIE_THEME_EXPIRES_IN_MS=31536000000 # 365 days
|
||||||
|
|
||||||
COINGECKO_API_BASE_URL=https://api.coingecko.com/api/v3
|
COINGECKO_API_BASE_URL=https://api.coingecko.com/api/v3
|
||||||
COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS=5000
|
COINGECKO_RATE_FETCH_TIMEOUT_MS=5000
|
||||||
|
|
||||||
KRAKEN_API_BASE_URL=https://api.kraken.com/0/public
|
KRAKEN_API_BASE_URL=https://api.kraken.com/0/public
|
||||||
KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS=5000
|
KRAKEN_RATE_FETCH_TIMEOUT_MS=5000
|
||||||
|
|
||||||
BASE64_ENCRYPTION_KEY="nyRya1KpYSQ+drpO132mkOEMUR+uq6K7tWvpMfppIME=" # Generate with: openssl rand -base64 32
|
BASE64_ENCRYPTION_KEY="nyRya1KpYSQ+drpO132mkOEMUR+uq6K7tWvpMfppIME=" # Generate with: openssl rand -base64 32
|
||||||
|
|
||||||
|
|||||||
@@ -159,14 +159,14 @@ export const getDigitalStockAttachmentMulterConfig = (): MulterConfig => {
|
|||||||
export const getCoingeckoConfig = (): CoingeckoConfig => {
|
export const getCoingeckoConfig = (): CoingeckoConfig => {
|
||||||
return {
|
return {
|
||||||
apiBaseUrl: env('COINGECKO_API_BASE_URL'),
|
apiBaseUrl: env('COINGECKO_API_BASE_URL'),
|
||||||
xmrRateFetchTimeoutMs: envInt('COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS')
|
rateFetchTimeoutMs: envInt('COINGECKO_RATE_FETCH_TIMEOUT_MS')
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getKrakenConfig = (): KrakenConfig => {
|
export const getKrakenConfig = (): KrakenConfig => {
|
||||||
return {
|
return {
|
||||||
apiBaseUrl: env('KRAKEN_API_BASE_URL'),
|
apiBaseUrl: env('KRAKEN_API_BASE_URL'),
|
||||||
xmrRateFetchTimeoutMs: envInt('KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS')
|
rateFetchTimeoutMs: envInt('KRAKEN_RATE_FETCH_TIMEOUT_MS')
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -251,12 +251,12 @@ class EnvironmentVariables {
|
|||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@Min(1)
|
@Min(1)
|
||||||
KRAKEN_XMR_RATE_FETCH_TIMEOUT_MS: number;
|
KRAKEN_RATE_FETCH_TIMEOUT_MS: number;
|
||||||
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
@Min(1)
|
@Min(1)
|
||||||
COINGECKO_XMR_RATE_FETCH_TIMEOUT_MS: number;
|
COINGECKO_RATE_FETCH_TIMEOUT_MS: number;
|
||||||
|
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
@IsString()
|
@IsString()
|
||||||
|
|||||||
@@ -84,12 +84,12 @@ export interface MulterConfig {
|
|||||||
|
|
||||||
export interface CoingeckoConfig {
|
export interface CoingeckoConfig {
|
||||||
apiBaseUrl: string;
|
apiBaseUrl: string;
|
||||||
xmrRateFetchTimeoutMs: number;
|
rateFetchTimeoutMs: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface KrakenConfig {
|
export interface KrakenConfig {
|
||||||
apiBaseUrl: string;
|
apiBaseUrl: string;
|
||||||
xmrRateFetchTimeoutMs: number;
|
rateFetchTimeoutMs: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EncryptionConfig {
|
export interface EncryptionConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user