@63pokupki/nodejs-common
Version:
common nodejs functionality
63 lines (62 loc) • 1.3 kB
TypeScript
import { SeoConfigI } from '../Components/Seo';
/**
* Подключение к S3
*/
export interface S3confI {
endpoint: string;
bucket: string;
baseUrl: string;
access: string;
secret: string;
}
export interface MainConfig {
mysql: {
client: string;
connection: {
host: string;
user: string;
password: string;
database: string;
};
pool: {
min: number;
max: number;
};
migrations: {
tableName: string;
directory: string;
};
acquireConnectionTimeout: number;
};
pgsql: {
dialect: string;
username: string;
password: string;
host: string;
port: number;
database: string;
dialectOptions: {
supportBigNumbers: true;
decimalNumbers: true;
};
};
redis: {
url: string;
};
common: {
env: string;
oldCoreURL: string;
errorMute: boolean;
hook_url: string;
port: number;
};
rabbit: {
connection: string;
queryList: string[];
};
S3: S3confI;
S3DO: S3confI;
S3DO256: S3confI;
S3DO512: S3confI;
SeoConfig?: SeoConfigI;
}