diff options
| author | stone <jules+okfprojz@okfoc.us> | 2017-02-18 19:59:09 -0500 |
|---|---|---|
| committer | stone <jules+okfprojz@okfoc.us> | 2017-02-18 19:59:09 -0500 |
| commit | 794bc930903a836329aff47481d109df10f81069 (patch) | |
| tree | 160499d95dac5d1df01b45490b735d2b60e814e1 /index.js | |
| parent | 765527e34208a6e1b83f51eba4a32aa5c239fbc7 (diff) | |
| parent | cf85cc2b75b9c3ead3a693b6fa0feeca5b9e70ba (diff) | |
Merge branch 'cms' of ghghgh.us:stone-island into cms
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) |
