forked from cassproject/CASS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2.google.config.js
30 lines (30 loc) · 943 Bytes
/
pm2.google.config.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
/*
To enable Google, create an OAUTH 2.0 Client ID and populate this file.
https://console.cloud.google.com/apis/credentials
*/
module.exports = {
apps : [
{
name: "CaSS",
script: "./src/main/server.js",
watch: true,
ignore_watch: ["logs", "node_modules"],
instances: 1,
log_file: 'logs/cass.log',
env: {
"CASS_LOOPBACK": "https://<endpoint>/api/",
"ELASTICSEARCH_ENDPOINT": "http://localhost:9200",
"PORT": "80",
"CASS_BASE": "",
"CASS_OIDC_ISSUER_BASE_URL": "https://accounts.google.com/",
"CASS_OIDC_CLIENT_ID": "<client_id>",
"CASS_OIDC_BASE_URL": "https://<endpoint>/",
"CASS_OIDC_SECRET": "<client_secret>",
"CASS_OIDC_ENABLED": "true"
},
node_args: [
"--max-old-space-size=512"
]
}
]
}