-
Notifications
You must be signed in to change notification settings - Fork 51
/
config.ini
82 lines (67 loc) · 2.17 KB
/
config.ini
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
[ServerSpecific]
# Name of your application
game = GameName
# Id of pushkin instance
world_id = 1
# Default API port
port = 8887
[Messenger]
# if true, gcm clients will not receive notifications
dry_run = false
# max batch size for apn notifications
apns_batch_size = 500
apns_topic = <YOUR TOPIC HERE>
apns_certificate_path = <ABSOLUTE-PATH-TO-APN-CERTIFICATE-HERE>
gcm_access_key = <YOUR-GCM-KEY-HERE>
# for future use
apns_sandbox = false
connection_error_retries = 3
# Baselink for your application sent with push notifications
base_deeplink_url = application_name.com
[RequestProcessor]
# queue limit for requests processor. See Monitoring API for reference
queue_limit = 50000
# Number of threads for request processor
request_processor_num_threads = 10
[Sender]
# queue limit for sender processor. See Monitoring API for reference
sender_queue_limit = 50000
enabled_senders =
pushkin.sender.senders.ApnNotificationSender {"workers": 50}
pushkin.sender.senders.GcmNotificationSender {"workers": 50}
[Log]
# log configuration
main_logger_name = pushkin
main_log_path = /var/log/pushkin/
notifications_logger_name = notifications
notification_log_path = /var/log/pushkin/notification/
notification_log_when_to_rotate = H
notification_log_rotate_suffix = %Y-%m-%d_%H
# notset, debug, info, warning, error, critical
main_log_level = DEBUG
keep_log_days = 7
[Database]
# database credentials
# to use unix socket set this to socket directory path
db_host = localhost
db_port = 5432
db_user = pushkin
db_name = pushkin
db_pass = pushkin
db_pool_size = 20
max_devices_per_user = 10
max_users_per_device = 1
[Event]
# event id of prebuilt login event
login_event_id = 4001
turn_off_notification_event_id = 4006
[RequestHandler]
# URLs for all request handlers
proto_event_handler_url = /post_events_proto
proto_notification_handler_url = /post_notification_proto
json_event_handler_url = /post_events_json
json_notification_handler_url = /post_notification_json
request_queue_handler_url = /get_request_queue
apn_sender_queue_handler_url = /get_apn_sender_queue
gcm_sender_queue_handler_url = /get_gcm_sender_queue
notification_post_processor_queue_handler_url = /get_notification_post_processor_queue