summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-02-19 01:14:24 +0100
committerJules Laplace <jules@okfoc.us>2017-02-19 01:14:24 +0100
commitd6be5583190174bd45c417b934b36e4469ab3441 (patch)
tree86dccac51fe09608b7f8954c05c270530f11155e /index.js
parentd3d195470caef02891de58ed25b92a02c088c37d (diff)
new certs
Diffstat (limited to 'index.js')
-rw-r--r--index.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/index.js b/index.js
index 2fad7abe..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,19 +75,28 @@ 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_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"),
+ 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)
@@ -101,7 +111,6 @@ var app = okcms.createApp({
},
}
},
- },
}
}).listen(1337)