summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-02-16 01:35:02 +0100
committerJules Laplace <jules@okfoc.us>2017-02-16 01:35:02 +0100
commit71e277a76862a1787ab34194faf762b7623347fd (patch)
tree2158466c477b3a31d280ef4adb5900ac634f3c7c /index.js
parenta1bbb82cc6b868d884e2d74d009240fdd27a6f9c (diff)
changing libs
Diffstat (limited to 'index.js')
-rw-r--r--index.js28
1 files changed, 27 insertions, 1 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)