diff options
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 37 |
1 files changed, 36 insertions, 1 deletions
@@ -1,5 +1,6 @@ var okcms = require('okcms') var assign = require('object-assign') +var path = require('path') var app = okcms.createApp({ @@ -74,8 +75,42 @@ 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_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) + // badge (int) + // alert (message) + // payload (raw json) + hub: { + alert: "The hub has been updated.", + }, + store: { + alert: "The store is now open.", + }, + } + }, } }).listen(1337) |
