Skip to content

Commit 0def131

Browse files
codebrewerycodebrewery
authored andcommitted
CLEANUP
1 parent 3c4b949 commit 0def131

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ stop:
1717
destroy:
1818
docker-compose down
1919

20+
deps:
21+
npm install
22+
2023
test:
2124
npm test
2225

app.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"repository": "https://github.com/codebrewery/web-node_webhook.git",
55
"keywords": [
66
"node",
7+
"socketio",
8+
"express",
79
"heroku"
810
],
911
"image": "heroku/nodejs"

src/config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
'use strict';
22

33
const config = {
4-
app: process.env.APP || 'default',
5-
token: process.env.APP_TOKEN || 'default-token',
4+
// Change this value to identical for both the server and client
5+
token: process.env.APP_TOKEN || 'CHANGE-ME',
6+
7+
// Client
8+
app: process.env.APP || 'default', // Change this to the id of your app, which will show in logs
9+
serverURL: process.env.SERVER_URL || 'http://127.0.0.1:8080',
10+
11+
// Server
612
secret: process.env.SECRET || 'QA1KPVPanMvtgf0otsie4pRqS1M_wffvqUd1g',
7-
secretExpiry: process.env.SECRET_EXPIRY || 60,
8-
port: process.env.PORT || '8080',
9-
socketPort: process.env.SOCKET_PORT || '443',
10-
serverURL: process.env.SERVER_URL || 'http://127.0.0.1:8080'
13+
secretExpiry: process.env.SECRET_EXPIRY || 60, // Seconds
14+
port: process.env.PORT || '8080'
1115
};
1216

1317
module.exports = {

0 commit comments

Comments
 (0)