From d6be5583190174bd45c417b934b36e4469ab3441 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 19 Feb 2017 01:14:24 +0100 Subject: new certs --- index.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 2fad7abe..9ce35659 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ var okcms = require('okcms') var assign = require('object-assign') +var path = require('path') var app = okcms.createApp({ @@ -74,19 +75,28 @@ var app = okcms.createApp({ key: process.env.S3_KEY, secret: process.env.S3_SECRET, bucket: process.env.S3_BUCKET, + dirname: process.env.S3_DIRNAME, maxbytes: 1024*1024*2, }, push: { lib: require("./lib/okpush"), - mongodbUrl: "mongodb://localhost/okpush_example", - apn: { - cert: path.join(__dirname, "./lib/okpush/test_certs/overlayer_dev_cert.pem"), - key: path.join(__dirname, "./lib/okpush/test_certs/overlayer_dev_key.pem"), + mongodbUrl: "mongodb://localhost/okpush_stone", + production: false, + apn_development: { + cert: path.join(__dirname, "./lib/okpush/certs/aps_development_cert.pem"), + key: path.join(__dirname, "./lib/okpush/certs/aps_development_key.pem"), connection: { gateway: "gateway.sandbox.push.apple.com", } }, + apn_production: { + 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", + } + }, bundleId: "us.okfoc.stoneisland", notifications: { // expiry (in seconds) @@ -101,7 +111,6 @@ var app = okcms.createApp({ }, } }, - }, } }).listen(1337) -- cgit v1.2.3-70-g09d2