mirror of
https://github.com/ibratabian17/OpenParty.git
synced 2026-01-15 14:22:54 -03:00
seperate encryption key from settings.json
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const crypto = require('crypto');
|
||||
const settings = require('../../settings.json')
|
||||
const secretKey = settings.server.encrpytion.secretKey;
|
||||
const secretKey = require('../../database/encryption.json').encrpytion.secretKey;
|
||||
|
||||
exports.generateSignedURL = (originalURL) => {
|
||||
// Set expiration time (in seconds)
|
||||
|
||||
@@ -7,11 +7,11 @@ const { getSavefilePath } = require('../helper');
|
||||
const settings = require('../../settings.json');
|
||||
const {encrypt, decrypt} = require('../lib/encryptor')
|
||||
|
||||
const secretKey = settings.server.encrpytion.userEncrypt;
|
||||
const secretKey = require('../../database/encryption.json').encrpytion.userEncrypt;
|
||||
const ubiwsurl = "https://public-ubiservices.ubi.com";
|
||||
const prodwsurl = "https://prod.just-dance.com";
|
||||
|
||||
exports.initroute = (app) => {
|
||||
const ubiwsurl = "https://public-ubiservices.ubi.com";
|
||||
const prodwsurl = "https://prod.just-dance.com";
|
||||
|
||||
// Endpoint to get profiles based on profileIds
|
||||
app.get("/profile/v2/profiles", (req, res) => {
|
||||
|
||||
6
database/encryption.json
Normal file
6
database/encryption.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"encrpytion": {
|
||||
"secretKey": "OpenParty.",
|
||||
"userEncrypt": "DoNotShareThisFileToAnyone"
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,6 @@
|
||||
"serverstatus": {
|
||||
"isMaintenance": false,
|
||||
"channel": "prod"
|
||||
},
|
||||
"encrpytion": {
|
||||
"secretKey": "OpenParty.",
|
||||
"userEncrypt": "DoNotShareThisFileToAnyone"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user