- Implemented client access token verification middleware to secure API endpoints. - Updated ServiceController to fetch active hosting services for authenticated users. - Refactored OrderController to ensure order retrieval is customer-specific. - Improved error logging in VmController for unexpected vCenter responses. - Disabled VNPay auto-deposit in TransactionController, switching to manual deposit flow. - Enhanced ServiceClientDetailResource to include Plesk credentials for hosting accounts. - Adjusted VpsServiceResource to dynamically set page type based on product type. - Added logging for PowerShellService to capture errors in RDP port changes. - Provisioning job now resolves service plans and logs relevant information for hosting accounts. - Updated database migrations to add necessary fields for service plans and DNS servers. - Refactored Service and ServicePlan models to establish relationships with hosting accounts and DNS servers.
49 lines
1.4 KiB
PHP
49 lines
1.4 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'),
|
|
],
|
|
|
|
'nextjs' => [
|
|
'url' => env('NEXTJS_URL', 'http://localhost:3000'),
|
|
'revalidate_secret' => env('NEXTJS_REVALIDATE_SECRET'),
|
|
],
|
|
|
|
'docs' => [
|
|
'wordpress_posts_url' => env('DOCS_WORDPRESS_POSTS_URL', 'https://tailieu.tgs.com.vn/wp-json/wp/v2/posts'),
|
|
],
|
|
|
|
'client_api' => [
|
|
// openssl rand -hex 32
|
|
'key' => env('CLIENT_API_ACCESS_KEY'),
|
|
'secret' => env('CLIENT_API_ACCESS_SECRET', 'tgs-client-api'),
|
|
],
|
|
|
|
];
|