Teren-app/config/services.php
2025-10-26 12:57:09 +01:00

64 lines
2.3 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'resend' => [
'key' => env('RESEND_KEY'),
],
'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
'sms' => [
'providers' => [
'smsapi_si' => [
// Base URL for SMS API provider
'base_url' => env('SMSAPI_SI_BASE_URL', 'https://www.smsapi.si'),
// Relative endpoint for sending SMS messages
'send_endpoint' => env('SMSAPI_SI_SEND_ENDPOINT', '/poslji-sms'),
// Endpoint for checking credit balance
'credits_endpoint' => env('SMSAPI_SI_CREDITS_ENDPOINT', '/preveri-stanje-kreditov'),
// Endpoint for fetching price quotes
'price_endpoint' => env('SMSAPI_SI_PRICE_ENDPOINT', '/dobi-ceno'),
// HTTP client timeout in seconds
'timeout' => (int) env('SMSAPI_SI_TIMEOUT', 10),
],
],
// Throttling defaults for queued SMS jobs (per provider or per profile)
'throttle' => [
'scope' => env('SMS_THROTTLE_SCOPE', 'global'), // global|per_profile
'allow' => (int) env('SMS_THROTTLE_ALLOW', 30), // requests allowed
'every' => (int) env('SMS_THROTTLE_EVERY', 60), // per seconds
'jitter_seconds' => (int) env('SMS_THROTTLE_JITTER', 2),
'provider_key' => env('SMS_THROTTLE_PROVIDER_KEY', 'smsapi_si'),
],
],
];