diff --git a/app.js b/app.js index ea47c82..3d50f3e 100644 --- a/app.js +++ b/app.js @@ -15,6 +15,10 @@ const env = { isTest: process.env.NODE_ENV === 'test' } +if (!env.isProd) { + process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" // See https://stackoverflow.com/questions/12180552/ +} + const config = { port: process.env.PORT, diff --git a/db.js b/db.js index 699b374..96f175b 100644 --- a/db.js +++ b/db.js @@ -70,12 +70,12 @@ module.exports = { url: date => `https://cdn.freedomforum.org/dfp/pdf${date.format('D')}/ISR_HA.pdf`, scale: 1.05, }, - { - id: 'NewIndianExpress', - name: 'New Indian Express', - url: date => `https://cdn.freedomforum.org/dfp/pdf${date.format('D')}/IND_NIE.pdf`, - scale: 1.02, - }, + // { + // id: 'NewIndianExpress', + // name: 'New Indian Express', + // url: date => `https://cdn.freedomforum.org/dfp/pdf${date.format('D')}/IND_NIE.pdf`, + // scale: 1.02, + // }, { id: 'JapanTimes', name: 'Japan Times', @@ -114,10 +114,10 @@ module.exports = { id: 'USAToday', displayFor: 10 }, - { - id: 'NewIndianExpress', - displayFor: 5 - } + // { + // id: 'NewIndianExpress', + // displayFor: 5 + // } ] }, { @@ -138,10 +138,10 @@ module.exports = { id: 'WaPo', displayFor: 15 }, - { - id: 'NewIndianExpress', - displayFor: 45 - } + // { + // id: 'NewIndianExpress', + // displayFor: 45 + // } ] }, {