mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 04:54:23 +00:00
Move to production config
This commit is contained in:
@@ -361,7 +361,7 @@ app.get( '/getAppleMusicDevToken', ( req, res ) => {
|
||||
// sign dev token
|
||||
const privateKey = fs.readFileSync( path.join( __dirname + '/config/apple_private_key.p8' ) ).toString();
|
||||
// TODO: Remove secret
|
||||
const config = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/apple-music-api.config.secret.json' ) ) );
|
||||
const config = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/apple-music-api.config.json' ) ) );
|
||||
const jwtToken = jwt.sign( {}, privateKey, {
|
||||
algorithm: "ES256",
|
||||
expiresIn: "180d",
|
||||
|
||||
@@ -12,7 +12,7 @@ const fs = require( 'fs' );
|
||||
const path = require( 'path' );
|
||||
|
||||
// TODO: deploy non-secret version
|
||||
const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/apple-music-api.config.secret.json' ) ) );
|
||||
const settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/config/apple-music-api.config.json' ) ) );
|
||||
|
||||
const music = new MusicKit( {
|
||||
key: fs.readFileSync( path.join( __dirname + '/config/apple_private_key.p8' ) ).toString(),
|
||||
|
||||
Reference in New Issue
Block a user