Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Local Configuration Override
- *
- * This configuration override file is for overriding environment-specific and
- * security-sensitive configuration information. Copy this file without the
- * .dist extension at the end and populate values as needed.
- *
- * @NOTE: This file is ignored from Git by default with the .gitignore included
- * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
- * credentials from accidentally being committed into version control.
- */
- return [
- 'host' => [
- 'name' => 'http://' . getenv('NGINX_CONTAINER_NAME'),
- ],
- 'db' => [
- 'driver' => 'PDO',
- 'dsn' => 'pgsql:host=' . getenv('DB_HOST') . ';port=5432;dbname=' . getenv('DB_NAME') . ';user=' . getenv('DB_USER') . ';password=' . getenv('DB_PASS'),
- ],
- 'service_manager' => [
- 'factories' => [
- 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
- ],
- ],
- 'statuslib' => [
- 'array_mapper_path' => 'data/wrapperLog.php',
- ],
- 'zf-mvc-auth' => [
- 'authentication' => [
- 'adapters' => [
- 'oauth2' => [
- 'adapter' => 'ZF\\MvcAuth\\Authentication\\OAuth2Adapter',
- 'storage' => [
- 'adapter' => 'pdo',
- 'dsn' => 'pgsql:host=' . getenv('DB_HOST') . ';port=5432;dbname=' . getenv('DB_NAME') . ';user=' . getenv('DB_USER') . ';password=' . getenv('DB_PASS'),
- 'route' => '/oauth',
- 'username' => getenv('DB_USER'),
- 'password' => getenv('DB_PASS'),
- ],
- ],
- ],
- ],
- ],
- 'access_cookie_settings' => array(
- 'domain' => 'hub.gpb.local',
- 'expires_in' => 3600,
- 'path' => '/',
- 'secure' => false,
- 'httponly' => true,
- ),
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement