Advertisement
Juc1

o1/static/832-070617/sites/example.com/settings.php

Jun 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. <?php
  2. /**
  3. * @file Drupal's settings.php file
  4. *
  5. * This file was automatically generated by Aegir 7.x-3.x
  6. * on Fri, 16 Jun 2017 10:07:38 +0000.
  7. *
  8. * If it is still managed by Aegir, changes to this file may be
  9. * lost. If it is not managed by aegir, you should remove this header
  10. * to avoid further confusion.
  11. */
  12.  
  13. /**
  14. * Detecting subdirectory mode
  15. */
  16. if (isset($_SERVER['SITE_SUBDIR']) && isset($_SERVER['RAW_HOST'])) {
  17. $base_url = 'http://' . $_SERVER['RAW_HOST'] . '/' . $_SERVER['SITE_SUBDIR'];
  18. }
  19.  
  20. if (isset($_SERVER['db_name'])) {
  21. /**
  22. * The database credentials are stored in the Apache or Nginx vhost config
  23. * of the associated site with SetEnv (fastcgi_param in Nginx) parameters.
  24. * They are called here with $_SERVER environment variables to
  25. * prevent sensitive data from leaking to site administrators
  26. * with PHP access, that potentially might be of other sites in
  27. * Drupal's multisite set-up.
  28. * This is a security measure implemented by the Aegir project.
  29. */
  30. $databases['default']['default'] = array(
  31. 'driver' => $_SERVER['db_type'],
  32. 'database' => $_SERVER['db_name'],
  33. 'username' => $_SERVER['db_user'],
  34. 'password' => $_SERVER['db_passwd'],
  35. 'host' => $_SERVER['db_host'],
  36. /* Drupal interprets $databases['db_port'] as a string, whereas Drush sees
  37. * it as an integer. To maintain consistency, we cast it to a string. This
  38. * should probably be fixed in Drush.
  39. */
  40. 'port' => (string) $_SERVER['db_port'],
  41. 'charset' => 'utf8mb4',
  42. 'collation' => 'utf8mb4_general_ci',
  43. );
  44. $db_url['default'] = $_SERVER['db_type'] . '://' . $_SERVER['db_user'] . ':' . $_SERVER['db_passwd'] . '@' . $_SERVER['db_host'] . ':' . $_SERVER['db_port'] . '/' . $_SERVER['db_name'];
  45. }
  46.  
  47. /**
  48. * Now that we used the credentials from the apache environment, we
  49. * don't need them anymore. Clear them from apache and the _SERVER
  50. * array, otherwise they show up in phpinfo() and other friendly
  51. * places.
  52. */
  53. if (function_exists('apache_setenv')) {
  54. apache_setenv('db_type', null);
  55. apache_setenv('db_user', null);
  56. apache_setenv('db_passwd', null);
  57. apache_setenv('db_host', null);
  58. apache_setenv('db_port', null);
  59. apache_setenv('db_name', null);
  60. // no idea why they are also in REDIRECT_foo, but they are
  61. apache_setenv('REDIRECT_db_type', null);
  62. apache_setenv('REDIRECT_db_user', null);
  63. apache_setenv('REDIRECT_db_passwd', null);
  64. apache_setenv('REDIRECT_db_host', null);
  65. apache_setenv('REDIRECT_db_port', null);
  66. apache_setenv('REDIRECT_db_name', null);
  67. }
  68. unset($_SERVER['db_type']);
  69. unset($_SERVER['db_user']);
  70. unset($_SERVER['db_passwd']);
  71. unset($_SERVER['db_host']);
  72. unset($_SERVER['db_port']);
  73. unset($_SERVER['db_name']);
  74. unset($_SERVER['REDIRECT_db_type']);
  75. unset($_SERVER['REDIRECT_db_user']);
  76. unset($_SERVER['REDIRECT_db_passwd']);
  77. unset($_SERVER['REDIRECT_db_host']);
  78. unset($_SERVER['REDIRECT_db_port']);
  79. unset($_SERVER['REDIRECT_db_name']);
  80.  
  81.  
  82. $profile = "standard";
  83. $install_profile = "standard";
  84.  
  85. /**
  86. * PHP settings: (managed in BOA via site and platform level INI files)
  87. *
  88. * To see what PHP settings are possible, including whether they can
  89. * be set at runtime (ie., when ini_set() occurs), read the PHP
  90. * documentation at http://www.php.net/manual/en/ini.php#ini.list
  91. * and take a look at the .htaccess file to see which non-runtime
  92. * settings are used there. Settings defined here should not be
  93. * duplicated there so as to avoid conflict issues.
  94. */
  95. //ini_set('session.gc_probability', 1);
  96. //ini_set('session.gc_divisor', 100);
  97. //ini_set('session.gc_maxlifetime', 200000);
  98. //ini_set('session.cookie_lifetime', 2000000);
  99.  
  100. /**
  101. * Set the umask so that new directories created by Drupal have the correct permissions
  102. */
  103. umask(0002);
  104.  
  105. $settings['install_profile'] = 'standard';
  106. $settings['file_public_path'] = 'sites/test.com/files';
  107. $settings['file_private_path'] = 'sites/test.com/private/files';
  108. $config['system.file']['path']['temporary'] = 'sites/test.com/private/temp';
  109. $config_directories[CONFIG_SYNC_DIRECTORY] = 'sites/test.com/private/config/sync';
  110. $settings['hash_salt'] = 'yAoKuBu0ktgSwanYXGnzIndglZ-fGK9Y1DIuxxxxxxxxxxxxxxxxxxxxGnK7MqPjj2c8B61fokw';
  111. $settings['aegir_api'] = 3;
  112. $settings['allow_authorize_operations'] = FALSE;
  113.  
  114. /**
  115. * Useless currently, because it is not used in Drupal 8 anyway.
  116. * Instead, Drupal 8 is trying to set the clean URLs mode on the fly,
  117. * depending on the request, so we should force this by redirecting
  118. * non-clean to clean URLs on the web server level - Nginx example:
  119. *
  120. * rewrite ^/index.php/(.*)$ $scheme://$host/$1 permanent;
  121. *
  122. */
  123. $settings['clean_url'] = 1;
  124.  
  125.  
  126. /**
  127. * Load services definition file.
  128. */
  129. $settings['container_yamls'][] = __DIR__ . '/services.yml';
  130.  
  131. /**
  132. * Trusted Host Settings support.
  133. */
  134. $settings['trusted_host_patterns'] = array(
  135. '^test\.com$',
  136. '^www\.test\.com$',
  137. '^localhost$',
  138. '^localhost\.*',
  139. '\.local$',
  140. );
  141.  
  142. # Extra configuration from modules:
  143.  
  144. # Additional host wide configuration settings. Useful for safely specifying configuration settings.
  145. if (is_readable('/data/disk/o1/config/includes/global.inc')) {
  146. include_once('/data/disk/o1/config/includes/global.inc');
  147. }
  148.  
  149. # Additional site configuration settings.
  150. if (is_readable('/data/disk/o1/static/832-070617/sites/test.com/local.settings.php')) {
  151. include_once('/data/disk/o1/static/832-070617/sites/test.com/local.settings.php');
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement