mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Fixed config defined too late
This commit is contained in:
parent
7b413dcbb2
commit
e87f804070
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -7,14 +7,14 @@ var app = express();
|
|||
//hashing service
|
||||
var crypto = require('crypto');
|
||||
|
||||
let config = JSON.parse(fs.readFileSync('config.json'));
|
||||
|
||||
//load database
|
||||
var sqlite3 = require('sqlite3').verbose();
|
||||
var db = new sqlite3.Database(config.db);
|
||||
//where the more sensitive data such as IP addresses are stored
|
||||
var privateDB = new sqlite3.Database(config.privateDB);
|
||||
|
||||
let config = JSON.parse(fs.readFileSync('config.json'));
|
||||
|
||||
// Create an HTTP service.
|
||||
http.createServer(app).listen(config.port);
|
||||
|
||||
|
|
Loading…
Reference in a new issue