mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Added port to config
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"port": 80,
|
||||
"globalSalt": "[global salt (pepper) that is added to every ip before hashing to make it even harder for someone to decode the ip]",
|
||||
"adminUserID": "[the hashed id of the user who can perform admin actions]",
|
||||
"behindProxy": true
|
||||
|
||||
6
index.js
6
index.js
@@ -13,11 +13,11 @@ var db = new sqlite3.Database('./databases/sponsorTimes.db');
|
||||
//where the more sensitive data such as IP addresses are stored
|
||||
var privateDB = new sqlite3.Database('./databases/private.db');
|
||||
|
||||
// Create an HTTP service.
|
||||
http.createServer(app).listen(80);
|
||||
|
||||
let config = JSON.parse(fs.readFileSync('config.json'));
|
||||
|
||||
// Create an HTTP service.
|
||||
http.createServer(app).listen(config.port);
|
||||
|
||||
var globalSalt = config.globalSalt;
|
||||
var adminUserID = config.adminUserID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user