Guest User

Untitled

a guest
Nov 2nd, 2017
32
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.  
  31. 'zf-mvc-auth' => [
  32. 'authentication' => [
  33. 'adapters' => [
  34. 'oauth2' => [
  35. 'adapter' => 'ZF\\MvcAuth\\Authentication\\OAuth2Adapter',
  36. 'storage' => [
  37. 'adapter' => 'pdo',
  38. 'dsn' => 'pgsql:host=' . getenv('DB_HOST') . ';port=5432;dbname=' . getenv('DB_NAME') . ';user=' . getenv('DB_USER') . ';password=' . getenv('DB_PASS'),
  39. 'route' => '/oauth',
  40. 'username' => getenv('DB_USER'),
  41. 'password' => getenv('DB_PASS'),
  42. ],
  43. ],
  44. ],
  45. ],
  46. ],
  47.  
  48.  
  49. 'access_cookie_settings' => array(
  50. 'domain' => '.gpb.local',
  51. 'expires_in' => 3600,
  52. 'path' => '/',
  53. 'secure' => false,
  54. 'httponly' => true,
  55. ),
  56. ];
Add Comment
Please, Sign In to add comment