diff options
| author | stone <jules+okfprojz@okfoc.us> | 2017-11-05 13:57:38 -0500 |
|---|---|---|
| committer | stone <jules+okfprojz@okfoc.us> | 2017-11-05 13:57:38 -0500 |
| commit | 56bda209771121cf8081ab822a9cb11e0149f752 (patch) | |
| tree | ff3193639f658b4fb7716251ca2ee40c943bb5db /index.js | |
| parent | 38d7bfa878b705ba2663ea3c8381201d6a978b77 (diff) | |
| parent | c5f4f0d6c9787bfe59563284002bc6c0cf0062ab (diff) | |
dev apns endpoint
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -86,8 +86,10 @@ var app = okcms.createApp({ push: { lib: require("./lib/okpush"), - mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev', - production: false, + // mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev', + // production: false, + mongodbUrl: "mongodb://localhost/okpush_stone", + production: true, apn_development: { cert: path.join(__dirname, "./lib/okpush/certs/aps_development_cert.pem"), key: path.join(__dirname, "./lib/okpush/certs/aps_development_key.pem"), @@ -96,10 +98,10 @@ var app = okcms.createApp({ } }, apn_production: { - // cert: path.join(__dirname, "./lib/okpush/certs/aps_production_cert.pem"), - // key: path.join(__dirname, "./lib/okpush/certs/aps_production_key.pem"), + cert: path.join(__dirname, "./lib/okpush/certs/aps_production_cert.pem"), + key: path.join(__dirname, "./lib/okpush/certs/aps_production_key.pem"), connection: { - // gateway: "gateway.push.apple.com", + gateway: "gateway.push.apple.com", } }, bundleId: "us.okfoc.stoneisland", @@ -121,3 +123,4 @@ var app = okcms.createApp({ }).listen(port) console.log('Server listening at port ' + port + '...'); + |
