-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathecosystem.config.js
More file actions
executable file
·54 lines (54 loc) · 1.5 KB
/
Copy pathecosystem.config.js
File metadata and controls
executable file
·54 lines (54 loc) · 1.5 KB
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
49
50
51
52
53
54
module.exports = {
apps: [
{
name: 'mailtemp-api',
script: './backend/server.js',
instances: 4,
exec_mode: 'cluster',
cwd: '/home/ubuntu/mail_temp',
env: {
NODE_ENV: 'production',
PORT: 3001,
JWT_SECRET: 'TempAmitBrands2024SuperSecretJWTKey_ChangeInProduction!',
DB_HOST: 'localhost',
DB_PORT: 5432,
DB_NAME: 'mailtemp_db',
DB_USER: 'mailtemp',
DB_PASSWORD: 'MailTemp2024Secure!',
REDIS_HOST: 'localhost',
REDIS_PORT: 6379,
SMTP_PORT: 2525,
DAILY_TOKEN_LIMIT: 200000,
DOMAIN: 'amitbrand.shop',
SUBDOMAINS: 'temp,soul,crack'
},
max_memory_restart: '1G',
error_file: './logs/api-error.log',
out_file: './logs/api-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
},
{
name: 'mailtemp-smtp',
script: './backend/smtp-server.js',
instances: 1,
cwd: '/home/ubuntu/mail_temp',
env: {
NODE_ENV: 'production',
DB_HOST: 'localhost',
DB_PORT: 5432,
DB_NAME: 'mailtemp_db',
DB_USER: 'mailtemp',
DB_PASSWORD: 'MailTemp2024Secure!',
REDIS_HOST: 'localhost',
REDIS_PORT: 6379,
SMTP_PORT: 2525,
DOMAIN: 'amitbrand.shop',
SUBDOMAINS: 'temp,soul,crack'
},
max_memory_restart: '500M',
error_file: './logs/smtp-error.log',
out_file: './logs/smtp-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
}
]
};