This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
ecosystem.config.sample.js
66 lines (65 loc) · 1.95 KB
/
ecosystem.config.sample.js
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
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : 'My Nano Ninja',
script : 'bin/www',
"log_date_format" : "YYYY-MM-DD HH:mm:ss",
env: {
NODE_ENV: 'production',
DOMAIN: 'https://mynano.ninja',
NODE_RPC: 'http://[::1]:7076',
NODE_INTERNAL: '12000',
MONGO_URL: 'mongodb://localhost:27017/mynanoninja',
MONGO_SESSIONURL: 'mongodb://localhost:27017/mynanoninja-session',
SESSION_SECRET: 'ohyeahnanoisgreat',
SENTRY_URL: '',
FACEBOOK_CLIENTID: '',
FACEBOOK_CLIENTSECRET: '',
TWITTER_CONSUMERKEY: '',
TWITTER_CONSUMERSECRET: '',
GOOGLE_CLIENTID: '',
GOOGLE_CLIENTSECRET: '',
GITHUB_CLIENTID: '',
GITHUB_CLIENTSECRET: '',
REDDIT_CLIENTID: '',
REDDIT_CLIENTSECRET: '',
DISCORD_CLIENTID: '',
DISCORD_CLIENTSECRET: '',
EMAIL_HOST: 'smtp.myhost.com',
EMAIL_USER: 'alert@mynano.ninja',
EMAIL_PASS: 'mypassword',
DPOW_USER: 'user',
DPOW_KEY: 'longhash',
DRPC_REPSONLINE: '[]',
VERIFICATION_AMOUNT: '1',
MATOMO_URL: "https://piwik.org/piwik.php",
MATOMO_TOKEN: "yourtoken",
MATOMO_SITE: "1",
PORT: 4000
}
},
{
name : 'My Nano Ninja - CRON',
script : 'cron',
"log_date_format" : "YYYY-MM-DD HH:mm:ss",
env: {
NODE_ENV: 'production',
DOMAIN: 'https://mynano.ninja',
NODE_RPC: 'http://[::1]:7076',
NODE_WS: 'ws://[::1]:7078',
MONGO_URL: 'mongodb://localhost:27017/mynanoninja',
SENTRY_URL: '',
EMAIL_HOST: 'smtp.myhost.com',
EMAIL_USER: 'alert@mynano.ninja',
EMAIL_PASS: 'mypassword',
DISCORD_HOOK: 'https://webhook.url',
DRPC_REPSONLINE: '[]'
}
}
]
};