Skip to content

Commit 0cbe97a

Browse files
committed
Added support for Vonage Cloud Runtime
1 parent f81a8b6 commit 0cbe97a

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ jspm_packages
4040
.env
4141

4242
/.idea/
43-
.DS_Store
43+
.DS_Store
44+
45+
neru.yml

bin/www

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ var http = require('http');
1111
/**
1212
* Get port from environment and store in Express.
1313
*/
14-
15-
var port = normalizePort(process.env.NERU_APP_PORT || '3000');
14+
var port = normalizePort(process.env.PORT || process.env.NERU_APP_PORT || 3000);
1615
app.set('port', port);
1716

1817
/**

routes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ router.all('/admin/clear-conversations', async function (req, res) {
429429
console.error(error);
430430
res.send(error)
431431
});
432+
});
433+
432434
router.get('/_/health', async function (req, res) {
433435
res.status(200).send({status: 'OK'});
434436
})

setup.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"data": [
3+
{
4+
"type": "TEXT",
5+
"title": "Vonage API Key",
6+
"description": "Your Vonage API Key. This is needed to enable SIP Functionality",
7+
"name": "API_KEY"
8+
},
9+
{
10+
"type": "SECRET",
11+
"title": "Vonage API Secret",
12+
"description": "Your Vonage API Secret. This is needed to enable SIP Functionality",
13+
"name": "API_SECRET"
14+
},
15+
{
16+
"type": "CONFERENCE_NUMBER",
17+
"title": "SIP Conference Number",
18+
"description": "A Vonage Number that will be used for SIP connectivity"
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)