summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorstone <jules+okfprojz@okfoc.us>2017-11-05 13:57:38 -0500
committerstone <jules+okfprojz@okfoc.us>2017-11-05 13:57:38 -0500
commit56bda209771121cf8081ab822a9cb11e0149f752 (patch)
treeff3193639f658b4fb7716251ca2ee40c943bb5db /index.js
parent38d7bfa878b705ba2663ea3c8381201d6a978b77 (diff)
parentc5f4f0d6c9787bfe59563284002bc6c0cf0062ab (diff)
dev apns endpoint
Diffstat (limited to 'index.js')
-rw-r--r--index.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/index.js b/index.js
index 41557d36..4c4dabe3 100644
--- a/index.js
+++ b/index.js
@@ -86,8 +86,10 @@ var app = okcms.createApp({
push: {
lib: require("./lib/okpush"),
- mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev',
- production: false,
+ // mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev',
+ // production: false,
+ mongodbUrl: "mongodb://localhost/okpush_stone",
+ production: true,
apn_development: {
cert: path.join(__dirname, "./lib/okpush/certs/aps_development_cert.pem"),
key: path.join(__dirname, "./lib/okpush/certs/aps_development_key.pem"),
@@ -96,10 +98,10 @@ var app = okcms.createApp({
}
},
apn_production: {
- // cert: path.join(__dirname, "./lib/okpush/certs/aps_production_cert.pem"),
- // key: path.join(__dirname, "./lib/okpush/certs/aps_production_key.pem"),
+ 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",
+ gateway: "gateway.push.apple.com",
}
},
bundleId: "us.okfoc.stoneisland",
@@ -121,3 +123,4 @@ var app = okcms.createApp({
}).listen(port)
console.log('Server listening at port ' + port + '...');
+