-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
48 lines (41 loc) · 1.3 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { config } from 'dotenv';
import { Key } from 'src/entities/Key.entity';
import { Manager } from 'src/entities/Manager.entity';
import { Organization } from 'src/entities/Organization.entity';
import { Session } from 'src/entities/Session.entity';
config();
export const AppPort = 8000;
export const DatabaseConfig: TypeOrmModuleOptions = {
type: 'postgres',
host: process.env.DATABASE_HOST,
port: 5432, //3306 for sql 5432 for postgres
username: process.env.DATABASE_USER,
password: process.env.DATABASE_PW,
database: process.env.DATABASE_NAME,
entities: [Manager, Organization, Key, Session],
synchronize: true,
autoLoadEntities: true,
};
export const BullConfig = {
redis: {
host: process.env.REDIS_HOST,
port: 6379,
password: process.env.REDIS_PASSWORD,
},
};
export const ItemPerPage = {
Organization: 7,
Session: 7,
Manager: 7,
};
export const ExpiryTime = {
Render: 25,
Mint: 300,
};
export const ORBIS_PROJECT_ID = process.env.ORBIS_PROJECT_ID;
export const ORBIS_ISSUER = 'eth-barcelona';
export const ORBIS_NAME = 'Chatrooms';
export const ORBIS_CREDENTIAL = 'access-controller';
export const verificationMessage =
'Sign this message to access chatroom features';