-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.php.SAMPLE
98 lines (86 loc) · 3 KB
/
config.php.SAMPLE
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
<?php
define('DEBUG', true);
define('LOG', true);
define('ROOT_DIR', dirname(__FILE__));
/**
**************************************
**** GENERAL SERVICES CONFIGURATION **
**************************************
*
* Database configuration
*/
define('DB_USERNAME', 'db_username');
define('DB_PASSWORD', 'db_password');
define('DB_HOST', 'db_host');
define('DB_NAME', 'db_name');
/**
* Mail configuration
*/
define('MAIL_SERVER', "mail_server");
define('MAIL_SERVER_PORT', 0);
define('MAIL_FROM', "mail@you.want");
/**
* Redis configuration
*/
define('REDIS_IP', 'redis_ip');
define('REDIS_PORT', 0);
/**
* Defining log routes
*/
define('LOG_DIR', "/var/log/pushapi/");
define('PROD_LOG', LOG_DIR . "production-errors.log");
define('DEV_LOG', LOG_DIR . "development-errors.log");
define('MAIL_SENT', LOG_DIR . "mails-sent.log");
define('MAIL_REQUEUED', LOG_DIR . "mails-requeued.log");
define('ANDROID_SENT', LOG_DIR . "android-sent.log");
define('ANDROID_REQUEUED', LOG_DIR . "android-requeued.log");
define('IOS_SENT', LOG_DIR . "ios-sent.log");
define('IOS_REQUEUED', LOG_DIR . "ios-requeued.log");
/**
****************************
**** PUSH DEVICES OPTIONS **
****************************
*
* Defining Android params
*
* INFO: You should create a project on https://console.developers.google.com and once activate the
* Push Notification service, create a "Key for server applications"
*/
define('ANDROID_KEY', "private_android_key");
define('GCM_URL', "https://android.googleapis.com/gcm/send");
/**
* Defining iOs params
*
* INFO: You must get separate certificates for the development environment and the production
* environment. The certificates are associated with an identifier of the app that is the
* recipient of remote notifications; this identifier includes the app’s bundle ID.
*
* DEVELOP ENVIRONMENT
*
* INFO: Use the development environment for initial development and testing of the provider app.
*/
define('CERTIFICATE_PATH_DEVELOP', '/path/to/dev-certificate.pem');
define('CERTIFICATE_PASSPHRASE_DEVELOP', 'passphrase');
define('APNS_URL_DEVELOP', "ssl://gateway.sandbox.push.apple.com:2195");
define('APNS_URL_FEEDBACK_DEVELOP', "ssl://feedback.sandbox.push.apple.com:2196");
/**
* PRODUCTION ENVIRONMENT
*
* INFO: Use the production environment when building the production version of the provider app.
*/
define('CERTIFICATE_PATH', '/path/to/certificate.pem');
define('CERTIFICATE_PASSPHRASE', 'passphrase');
define('APNS_URL', "ssl://gateway.push.apple.com:2195");
define('APNS_URL_FEEDBACK', "ssl://feedback.push.apple.com:2196");
/**
**********************************
**** PUSH NOTIFICATIONS OPTIONS **
**********************************
*
* Title of the Push notification
*/
define('PUSH_TITLE', "Example");
// When redirect values are required for each push notification, the PushApi will be more restrictive
define('REDIRECT_REQUIRED', false);
// Only applied on Unicast messages (if it is wanted to send only one message per day of the same "theme")
define('SENDING_LIMITATION', false);