Files
Mahdi 61dbaf1f0f feat(sms): failover SuperAdmin SMS hosts with sticky success cache
Try montzar/montech/montest when wallet panel calls fail; remember last working base for 7 days. No .env change required.
2026-08-24 17:32:55 +03:30

60 lines
2.1 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.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
],
'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'),
],
/*
* API خارجی (get_wallet / order) — مقدار واقعی از settings خوانده می‌شود:
* node_client_id (یا fallback NODE_CLIENT_ID)
* node_shared_secret (یا fallback NODE_SHARED_SECRET)
* ValidateRequests از ConfigService استفاده می‌کند.
*/
'node' => [
'client_id' => env('NODE_CLIENT_ID'),
'secret' => env('NODE_SHARED_SECRET'),
],
/*
| SuperAdmin SMS wallet (source of truth when secret/token is set).
| SUPERADMIN_SMS_BASE_URL is optional preferred host; client also fails over to
| adm.montzar.ir / adm.montech.ir / adm.montest.ir automatically (no .env change needed).
| Example: SUPERADMIN_SMS_BASE_URL=https://adm.montzar.ir/api/remote/sms
*/
'superadmin' => [
'sms_base_url' => env('SUPERADMIN_SMS_BASE_URL'),
'sms_shared_secret' => env('SUPERADMIN_SMS_SHARED_SECRET'),
'sms_domain' => env('SUPERADMIN_SMS_DOMAIN'),
'remote_token' => env('SUPERADMIN_REMOTE_TOKEN'),
/** Origin سوپرادمین برای /api/public/program-settings و /api/remote/program-settings */
'origin' => env('SUPERADMIN_ORIGIN'),
],
];