- **Sentry** wired in bootstrap/app.php via Sentry\Laravel\Integration.
No-op when SENTRY_LARAVEL_DSN is empty.
- **Audit logging** broadened: LogsActivity applied to Household, QrCode,
Trip, Payment with tight logOnly whitelists and named log channels
('household', 'qr_code', 'trip', 'payment') to keep the activity
stream useful.
- **Bulk admin actions**:
POST /admin/households/bulk-approve — skips already-approved /
no-proof / unknown ids, reports per-id outcomes
POST /admin/bulk/users/{suspend,activate} — admins protected
POST /admin/bulk/qr-codes/void — respects state machine transitions
- **FCM push scaffold**: PushDriver contract with LogPushDriver
(default) and FcmPushDriver (activates when FCM_SERVER_KEY is set).
PushChannel adapts notifications. RoutesByPreferences now also
routes via push when push_enabled + fcm_token. toPush() payloads
added to HouseholdApproved / QrBalanceLow / PickupImminent.
- **Reverb WebSocket broadcast**: laravel/reverb installed.
TruckLocationBroadcast fires on every TruckTracker::record().
routes/channels.php authenticates: admins → private-admin.live,
residents → area.{id}.trucks (only if their household barangay is
covered by the service area).
- **PSGC seeder** expanded: all 17 PH regions, 4 NCR districts,
all 17 NCR cities. Sample barangays still carry rectangular
boundaries for point-in-polygon resolution tests.
- **Conditional SPATIAL INDEX migration** for barangays.boundary —
safe no-op until every row has a polygon (i.e., after full PSA
dataset import). Re-running `php artisan migrate` after import
flips the column to NOT NULL and adds the index.
196 feature tests passing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
103 lines
3.9 KiB
PHP
103 lines
3.9 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Reverb Server
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This option controls the default server used by Reverb to handle
|
|
| incoming messages as well as broadcasting message to all your
|
|
| connected clients. At this time only "reverb" is supported.
|
|
|
|
|
*/
|
|
|
|
'default' => env('REVERB_SERVER', 'reverb'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Reverb Servers
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may define details for each of the supported Reverb servers.
|
|
| Each server has its own configuration options that are defined in
|
|
| the array below. You should ensure all the options are present.
|
|
|
|
|
*/
|
|
|
|
'servers' => [
|
|
|
|
'reverb' => [
|
|
'host' => env('REVERB_SERVER_HOST', '0.0.0.0'),
|
|
'port' => env('REVERB_SERVER_PORT', 8080),
|
|
'path' => env('REVERB_SERVER_PATH', ''),
|
|
'hostname' => env('REVERB_HOST'),
|
|
'options' => [
|
|
'tls' => [],
|
|
],
|
|
'max_request_size' => env('REVERB_MAX_REQUEST_SIZE', 10_000),
|
|
'scaling' => [
|
|
'enabled' => env('REVERB_SCALING_ENABLED', false),
|
|
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
|
|
'server' => [
|
|
'url' => env('REDIS_URL'),
|
|
'host' => env('REDIS_HOST', '127.0.0.1'),
|
|
'port' => env('REDIS_PORT', '6379'),
|
|
'username' => env('REDIS_USERNAME'),
|
|
'password' => env('REDIS_PASSWORD'),
|
|
'database' => env('REDIS_DB', '0'),
|
|
'timeout' => env('REDIS_TIMEOUT', 60),
|
|
],
|
|
],
|
|
'pulse_ingest_interval' => env('REVERB_PULSE_INGEST_INTERVAL', 15),
|
|
'telescope_ingest_interval' => env('REVERB_TELESCOPE_INGEST_INTERVAL', 15),
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Reverb Applications
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may define how Reverb applications are managed. If you choose
|
|
| to use the "config" provider, you may define an array of apps which
|
|
| your server will support, including their connection credentials.
|
|
|
|
|
*/
|
|
|
|
'apps' => [
|
|
|
|
'provider' => 'config',
|
|
|
|
'apps' => [
|
|
[
|
|
'key' => env('REVERB_APP_KEY'),
|
|
'secret' => env('REVERB_APP_SECRET'),
|
|
'app_id' => env('REVERB_APP_ID'),
|
|
'options' => [
|
|
'host' => env('REVERB_HOST'),
|
|
'port' => env('REVERB_PORT', 443),
|
|
'scheme' => env('REVERB_SCHEME', 'https'),
|
|
'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
|
|
],
|
|
'allowed_origins' => ['*'],
|
|
'ping_interval' => env('REVERB_APP_PING_INTERVAL', 60),
|
|
'activity_timeout' => env('REVERB_APP_ACTIVITY_TIMEOUT', 30),
|
|
'max_connections' => env('REVERB_APP_MAX_CONNECTIONS'),
|
|
'max_message_size' => env('REVERB_APP_MAX_MESSAGE_SIZE', 10_000),
|
|
'accept_client_events_from' => env('REVERB_APP_ACCEPT_CLIENT_EVENTS_FROM', 'members'),
|
|
'rate_limiting' => [
|
|
'enabled' => env('REVERB_APP_RATE_LIMITING_ENABLED', false),
|
|
'max_attempts' => env('REVERB_APP_RATE_LIMIT_MAX_ATTEMPTS', 60),
|
|
'decay_seconds' => env('REVERB_APP_RATE_LIMIT_DECAY_SECONDS', 60),
|
|
'terminate_on_limit' => env('REVERB_APP_RATE_LIMIT_TERMINATE', false),
|
|
],
|
|
],
|
|
],
|
|
|
|
],
|
|
|
|
];
|