Files
boursecu_server/config/services.php
T
mohmdsdgandCursor da9f98b958 feat(server): overlay admin get_settings from SuperAdmin program-settings
Fetch public program-settings with 3-origin retry and no Laravel cache so
local DB settings stay in sync with the sold version.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:10:37 +03:30

58 lines
1.9 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 both env vars are set).
| 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'),
],
];