Add guest push notifications and queue alerts
This commit is contained in:
7
config/notifications.php
Normal file
7
config/notifications.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'guest_achievements' => [
|
||||
'milestones' => array_map('intval', explode(',', (string) env('GUEST_ACHIEVEMENT_MILESTONES', '10,25,50'))),
|
||||
],
|
||||
];
|
||||
13
config/push.php
Normal file
13
config/push.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'enabled' => (bool) env('PUSH_ENABLED', false),
|
||||
|
||||
'ttl' => (int) env('PUSH_TTL', 600),
|
||||
|
||||
'vapid' => [
|
||||
'public_key' => env('PUSH_VAPID_PUBLIC_KEY'),
|
||||
'private_key' => env('PUSH_VAPID_PRIVATE_KEY'),
|
||||
'subject' => env('PUSH_VAPID_SUBJECT', env('APP_URL', 'mailto:support@example.com')),
|
||||
],
|
||||
];
|
||||
@@ -29,6 +29,11 @@ return [
|
||||
'lock_seconds' => (int) env('STORAGE_QUEUE_HEALTH_LOCK_SECONDS', 120),
|
||||
'cache_minutes' => (int) env('STORAGE_QUEUE_HEALTH_CACHE_MINUTES', 10),
|
||||
'stalled_minutes' => (int) env('STORAGE_QUEUE_STALLED_MINUTES', 10),
|
||||
'pending_event_minutes' => (int) env('STORAGE_QUEUE_PENDING_EVENT_MINUTES', 8),
|
||||
'pending_event_threshold' => (int) env('STORAGE_QUEUE_PENDING_EVENT_THRESHOLD', 5),
|
||||
'failed_event_minutes' => (int) env('STORAGE_QUEUE_FAILED_EVENT_MINUTES', 30),
|
||||
'failed_event_threshold' => (int) env('STORAGE_QUEUE_FAILED_EVENT_THRESHOLD', 2),
|
||||
'guest_alert_ttl' => (int) env('STORAGE_QUEUE_GUEST_ALERT_TTL', 30),
|
||||
'thresholds' => [
|
||||
'default' => [
|
||||
'warning' => (int) env('STORAGE_QUEUE_DEFAULT_WARNING', 100),
|
||||
|
||||
Reference in New Issue
Block a user