generalizing cert path
This commit is contained in:
parent
cddc7096a5
commit
0c14c7d5ce
@ -4,8 +4,8 @@ const { Samsung, KEYS, APPS } = require('samsung-tv-control')
|
|||||||
const jsonfile = require('jsonfile')
|
const jsonfile = require('jsonfile')
|
||||||
const file = '/home/token.json'
|
const file = '/home/token.json'
|
||||||
var https = require('https');
|
var https = require('https');
|
||||||
var privateKey = fs.readFileSync('/cert/grwh.work.key', 'utf8');
|
var privateKey = fs.readFileSync('/cert/cert.key', 'utf8');
|
||||||
var certificate = fs.readFileSync('/cert/grwh.work.cert.combined', 'utf8');
|
var certificate = fs.readFileSync('/cert/cert.crt', 'utf8');
|
||||||
var credentials = {key: privateKey, cert: certificate};
|
var credentials = {key: privateKey, cert: certificate};
|
||||||
|
|
||||||
var cors = require('cors')
|
var cors = require('cors')
|
||||||
|
Loading…
Reference in New Issue
Block a user