diff --git a/config/auth.php b/config/auth.php index d8c6cee7..d83996ad 100644 --- a/config/auth.php +++ b/config/auth.php @@ -84,6 +84,10 @@ return [ | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | */ 'passwords' => [ diff --git a/config/broadcasting.php b/config/broadcasting.php index ce8461a1..284a8cb6 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -32,21 +32,24 @@ return [ 'pusher' => [ 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY', 'app-key'), - 'secret' => env('PUSHER_APP_SECRET', 'app-secret'), - 'app_id' => env('PUSHER_APP_ID', 'app-id'), + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'host' => 'ws.portal.einundzwanzig.space', - 'port' => 6004, - 'scheme' => 'https', + 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), 'encrypted' => true, - 'useTLS' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', 'debug' => true, 'curl_options' => [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, ], ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], ], 'ably' => [ diff --git a/config/services.php b/config/services.php index 3feaa642..d1d2888b 100644 --- a/config/services.php +++ b/config/services.php @@ -2,6 +2,10 @@ return [ + 'horizon' => [ + 'secret' => env('HORIZON_SECRET'), + ], + /* |-------------------------------------------------------------------------- | Third Party Services @@ -14,10 +18,6 @@ return [ | */ - 'horizon' => [ - 'secret' => env('HORIZON_SECRET'), - ], - 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'),