summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js28
-rw-r--r--package.json2
2 files changed, 28 insertions, 2 deletions
diff --git a/index.js b/index.js
index 65b04266..9c0474ea 100644
--- a/index.js
+++ b/index.js
@@ -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)
diff --git a/package.json b/package.json
index 064c79a4..621bcbf7 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,6 @@
"homepage": "https://github.com/okfocus/stone-island",
"dependencies": {
"object-assign": "^2.0.0",
- "okcms": "git+ssh://git@github.com:okfocus/okcms.git#v0.2.1"
+ "okcms": "git+ssh://git@ghghgh.us/~/okcms.git#v0.2.5"
}
}