services.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Third Party Services
  6. |--------------------------------------------------------------------------
  7. |
  8. | This file is for storing the credentials for third party services such
  9. | as Stripe, Mailgun, SparkPost and others. This file provides a sane
  10. | default location for this type of information, allowing packages
  11. | to have a conventional place to find your various credentials.
  12. |
  13. */
  14. 'mailgun' => [
  15. 'domain' => env('MAILGUN_DOMAIN'),
  16. 'secret' => env('MAILGUN_SECRET'),
  17. ],
  18. 'ses' => [
  19. 'key' => env('SES_KEY'),
  20. 'secret' => env('SES_SECRET'),
  21. 'region' => 'us-east-1',
  22. ],
  23. 'sparkpost' => [
  24. 'secret' => env('SPARKPOST_SECRET'),
  25. ],
  26. 'stripe' => [
  27. 'model' => App\Shop\Customers\Customer::class,
  28. 'key' => env('STRIPE_KEY'),
  29. 'secret' => env('STRIPE_SECRET'),
  30. ],
  31. 'micro' => [
  32. 'api_gateway' => env('MICRO_API_GATEWAY', 'http://localhost:8080'),
  33. 'timeout' => env('MICRO_TIMEOUT', 3.0), //网关超时时间
  34. 'jwt_key' => env('MICRO_JWT_KEY', 'laracomUserTokenKeySecret'),
  35. 'jwt_algorithms' => env('MICRO_JWT_ALGORITHMS', 'HS256'),
  36. 'broker_host' => env('MICRO_BROKER_HOST', '127.0.0.1'),
  37. 'broker_port' => env('MICRO_BROKER_PORT', '4222'),
  38. ]
  39. ];