diff options
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -75,7 +75,33 @@ var app = okcms.createApp({ secret: process.env.S3_SECRET, bucket: process.env.S3_BUCKET, 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"), + connection: { + gateway: "gateway.sandbox.push.apple.com", + } + }, + bundleId: "us.okfoc.overlayer", + 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) |
