mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
commit
d130af130b
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue