Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <?php
  2. /**
  3. * Local Configuration Override
  4. *
  5. * This configuration override file is for overriding environment-specific and
  6. * security-sensitive configuration information. Copy this file without the
  7. * .dist extension at the end and populate values as needed.
  8. *
  9. * @NOTE: This file is ignored from Git by default with the .gitignore included
  10. * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
  11. * credentials from accidentally being committed into version control.
  12. */
  13.  
  14. return [
  15. 'host' => [
  16. 'name' => 'http://' . getenv('NGINX_CONTAINER_NAME'),
  17. ],
  18. 'db' => [
  19. 'driver' => 'PDO',
  20. 'dsn' => 'pgsql:host=' . getenv('DB_HOST') . ';port=5432;dbname=' . getenv('DB_NAME') . ';user=' . getenv('DB_USER') . ';password=' . getenv('DB_PASS'),
  21. ],
  22. 'service_manager' => [
  23. 'factories' => [
  24. 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
  25. ],
  26. ],
  27. 'statuslib' => [
  28. 'array_mapper_path' => 'data/wrapperLog.php',
  29. ],
  30. 'zf-mvc-auth' => [
  31. 'authentication' => [
  32. 'adapters' => [
  33. 'oauth2' => [
  34. 'adapter' => 'ZF\\MvcAuth\\Authentication\\OAuth2Adapter',
  35. 'storage' => [
  36. 'adapter' => 'pdo',
  37. 'dsn' => 'pgsql:host=' . getenv('DB_HOST') . ';port=5432;dbname=' . getenv('DB_NAME') . ';user=' . getenv('DB_USER') . ';password=' . getenv('DB_PASS'),
  38. 'route' => '/oauth',
  39. 'username' => getenv('DB_USER'),
  40. 'password' => getenv('DB_PASS'),
  41. ],
  42. ],
  43. ],
  44. ],
  45. ],
  46. 'access_cookie_settings' => array(
  47. 'domain' => 'hub.gpb.local',
  48. 'expires_in' => 3600,
  49. 'path' => '/',
  50. 'secure' => false,
  51. 'httponly' => true,
  52. ),
  53. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement