diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-02-19 01:14:24 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-02-19 01:14:24 +0100 |
| commit | d6be5583190174bd45c417b934b36e4469ab3441 (patch) | |
| tree | 86dccac51fe09608b7f8954c05c270530f11155e /lib/okpush/apn.js | |
| parent | d3d195470caef02891de58ed25b92a02c088c37d (diff) | |
new certs
Diffstat (limited to 'lib/okpush/apn.js')
| -rw-r--r-- | lib/okpush/apn.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/okpush/apn.js b/lib/okpush/apn.js index b6909f6f..febd03bb 100644 --- a/lib/okpush/apn.js +++ b/lib/okpush/apn.js @@ -4,8 +4,10 @@ var db = require('./db') var apnProvider, apnFeedback function init (config) { - config.apn.connection.key = config.apn.key - config.apn.connection.cert = config.apn.cert + var apn_config = config.production ? config.apn_production : config.apn_development + config.apn = apn_config + config.apn.connection.key = apn_config.key + config.apn.connection.cert = apn_config.cert apnProvider = new apn.Provider(config.apn.connection) } |
