summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorstone <jules+okfprojz@okfoc.us>2017-02-18 19:59:09 -0500
committerstone <jules+okfprojz@okfoc.us>2017-02-18 19:59:09 -0500
commit794bc930903a836329aff47481d109df10f81069 (patch)
tree160499d95dac5d1df01b45490b735d2b60e814e1 /index.js
parent765527e34208a6e1b83f51eba4a32aa5c239fbc7 (diff)
parentcf85cc2b75b9c3ead3a693b6fa0feeca5b9e70ba (diff)
Merge branch 'cms' of ghghgh.us:stone-island into cms
Diffstat (limited to 'index.js')
-rw-r--r--index.js37
1 files changed, 36 insertions, 1 deletions
diff --git a/index.js b/index.js
index 65b04266..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,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)