-
Notifications
You must be signed in to change notification settings - Fork 227
/
settings-sample.coffee
140 lines (129 loc) · 4.73 KB
/
settings-sample.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
exports.server =
redis_port: 6379
redis_host: 'localhost'
# redis_socket: '/var/run/redis/redis.sock'
# redis_auth: 'password'
# redis_db_number: 2
# listen_ip: '10.0.1.2'
tcp_port: 80
udp_port: 80
access_log: yes
acl:
# restrict publish access to private networks
publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']
# auth:
# # require HTTP basic authentication, username is 'admin' and
# # password is 'password'
# #
# # HTTP basic authentication overrides IP-based authentication
# # if both acl and auth are defined.
# admin:
# password: 'password'
# realms: ['register', 'publish']
exports['event-source'] =
enabled: yes
exports['apns'] =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Convert cert.cer and key.p12 using:
# $ openssl x509 -in cert.cer -inform DER -outform PEM -out apns-cert.pem
# $ openssl pkcs12 -in key.p12 -out apns-key.pem -nodes
cert: 'apns-cert.pem'
key: 'apns-key.pem'
cacheLength: 100
# Uncomment to set the default value for parameter.
# This setting not overrides the value for the parameter that is set in the payload fot event request.
# category: 'show'
# contentAvailable: true
# Selects data keys which are allowed to be sent with the notification
# Keep in mind that APNS limits notification payload size to 256 bytes
payloadFilter: ['messageFrom']
# uncommant for dev env
#gateway: 'gateway.sandbox.push.apple.com'
#address: 'feedback.sandbox.push.apple.com'
# # Uncomment to use same host for prod and dev
# exports['apns-dev'] =
# enabled: yes
# class: require('./lib/pushservices/apns').PushServiceAPNS
# # Your dev certificats
# cert: 'apns-cert.pem'
# key: 'apns-key.pem'
# cacheLength: 100
# gateway: 'gateway.sandbox.push.apple.com'
# # Uncomment to set the default value for parameter.
# # This setting not overrides the value for the parameter that is set in the payload fot event request.
# # category: 'show'
# # contentAvailable: true
exports["wns-toast"] =
enabled: yes
client_id: 'ms-app://SID-from-developer-console'
client_secret: 'client-secret-from-developer-console'
class: require('./lib/pushservices/wns').PushServiceWNS
type: 'toast'
# Any parameters used here must be present in each push event.
launchTemplate: '/Page.xaml?foo=${data.foo}'
exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
#options:
#proxy: 'PROXY SERVER HERE'
# # Legacy Android Push Service
# exports['c2dm'] =
# enabled: yes
# class: require('./lib/pushservices/c2dm').PushServiceC2DM
# # App credentials
# user: '[email protected]'
# password: 'something complicated and secret'
# source: 'com.yourcompany.app-name'
# # How many concurrent requests to perform
# concurrency: 10
exports['http'] =
enabled: yes
class: require('./lib/pushservices/http').PushServiceHTTP
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
# Used for WP7.5+ to handle deep linking
paramTemplate: '/Page.xaml?object=${data.object_id}'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get the value of each required properties
tileMapping:
# Used for WP7.5+ to push to secondary tiles
# id: "/SecondaryTile.xaml?DefaultTitle=${event.name}"
# count: "${data.count}"
title: "${data.title}"
backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#005e8a"
backTitle: "${data.back_title}"
backContent: "${data.message}"
# param for WP8 flip tile (sent when subscriber declare a minimum OS version of 8.0)
smallBackgroundImage: "${data.small_background_image_url}"
wideBackgroundImage: "${data.wide_background_image_url}"
wideBackContent: "${data.message}"
wideBackBackgroundImage: "#005e8a"
exports['mpns-raw'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'raw'
# Transports: Console, File, Http
#
# Common options:
# level:
# error: log errors only
# warn: log also warnings
# info: log status messages
# verbose: log event and subscriber creation and deletion
# silly: log submitted message content
#
# See https://github.com/flatiron/winston#working-with-transports for
# other transport-specific options.
exports['logging'] = [
transport: 'Console'
options:
level: 'info'
]