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
|
const
|
||||||
express = require('express'),
|
express = require('express'),
|
||||||
routes = express.Router(),
|
routes = express.Router(),
|
||||||
|
result = require('dotenv').config()
|
||||||
cookieParser = require('cookie-parser'),
|
cookieParser = require('cookie-parser'),
|
||||||
bodyParser = require('body-parser'),
|
bodyParser = require('body-parser'),
|
||||||
crypto = require('crypto');
|
crypto = require('crypto');
|
||||||
@ -66,7 +67,7 @@ routes.get('/logout', isAllowed, (req, res) => {
|
|||||||
routes.get('/builder', isAllowed, (req, res) => {
|
routes.get('/builder', isAllowed, (req, res) => {
|
||||||
res.render('builder', {
|
res.render('builder', {
|
||||||
// myPort: CONST.control_port
|
// 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'),
|
express = require('express'),
|
||||||
app = express(),
|
app = express(),
|
||||||
server = require('http').createServer(app),
|
server = require('http').createServer(app),
|
||||||
|
result = require('dotenv').config(),
|
||||||
IO = require('socket.io')(server),
|
IO = require('socket.io')(server),
|
||||||
geoip = require('geoip-lite'),
|
geoip = require('geoip-lite'),
|
||||||
CONST = require('./includes/const'),
|
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",
|
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
|
||||||
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
|
"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": {
|
"ee-first": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"cookie-parser": "^1.4.4",
|
"cookie-parser": "^1.4.4",
|
||||||
|
"dotenv": "^8.2.0",
|
||||||
"ejs": "^2.6.2",
|
"ejs": "^2.6.2",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"geoip-lite": "^1.3.7",
|
"geoip-lite": "^1.3.7",
|
||||||
|
Loading…
Reference in New Issue
Block a user