added drupal settings files to ressources
This commit is contained in:
@@ -26,11 +26,13 @@ git clone --recursive https://figureslibres.io/gogs/bachir/docker-eql.git
|
|||||||
submodules :
|
submodules :
|
||||||
- https://figureslibres.io/gogs/bachir/eql-d9
|
- https://figureslibres.io/gogs/bachir/eql-d9
|
||||||
|
|
||||||
### setup /sites/default/settings.php
|
### setup drupal settings files
|
||||||
|
|
||||||
```
|
```
|
||||||
cp -r ressources/d9/settings.php src_d9/web/sites/default/
|
cp -r ressources/d9/settings.php src_d9/web/sites/default/
|
||||||
cp -r ressources/d9/settings.local.php src_d9/web/sites/default/
|
cp -r ressources/d9/settings.local.php src_d9/web/sites/default/
|
||||||
|
cp -r ressources/d9/services.yml src_d9/web/sites/default/
|
||||||
|
cp -r ressources/d9/development.services.yml src_d9/web/sites/default/
|
||||||
```
|
```
|
||||||
|
|
||||||
### get the sites/default/files folder
|
### get the sites/default/files folder
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
# Local development services.
|
||||||
|
#
|
||||||
|
# To activate this feature, follow the instructions at the top of the
|
||||||
|
# 'example.settings.local.php' file, which sits next to this file.
|
||||||
|
parameters:
|
||||||
|
twig.config:
|
||||||
|
# Twig debugging:
|
||||||
|
#
|
||||||
|
# When debugging is enabled:
|
||||||
|
# - The markup of each Twig template is surrounded by HTML comments that
|
||||||
|
# contain theming information, such as template file name suggestions.
|
||||||
|
# - Note that this debugging markup will cause automated tests that directly
|
||||||
|
# check rendered HTML to fail. When running automated tests, 'debug'
|
||||||
|
# should be set to FALSE.
|
||||||
|
# - The dump() function can be used in Twig templates to output information
|
||||||
|
# about template variables.
|
||||||
|
# - Twig templates are automatically recompiled whenever the source code
|
||||||
|
# changes (see auto_reload below).
|
||||||
|
#
|
||||||
|
# For more information about debugging Twig templates, see
|
||||||
|
# https://www.drupal.org/node/1906392.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default false
|
||||||
|
debug: true
|
||||||
|
# Twig auto-reload:
|
||||||
|
#
|
||||||
|
# Automatically recompile Twig templates whenever the source code changes.
|
||||||
|
# If you don't provide a value for auto_reload, it will be determined
|
||||||
|
# based on the value of debug.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default null
|
||||||
|
auto_reload: null
|
||||||
|
# Twig cache:
|
||||||
|
#
|
||||||
|
# By default, Twig templates will be compiled and stored in the filesystem
|
||||||
|
# to increase performance. Disabling the Twig cache will recompile the
|
||||||
|
# templates from source each time they are used. In most cases the
|
||||||
|
# auto_reload setting above should be enabled rather than disabling the
|
||||||
|
# Twig cache.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default true
|
||||||
|
cache: false
|
||||||
|
# Cacheability debugging:
|
||||||
|
#
|
||||||
|
# Responses with cacheability metadata (CacheableResponseInterface instances)
|
||||||
|
# get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
|
||||||
|
#
|
||||||
|
# For more information about debugging cacheable responses, see
|
||||||
|
# https://www.drupal.org/developing/api/8/response/cacheable-response-interface
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default false
|
||||||
|
http.response.debug_cacheability_headers: true
|
||||||
|
services:
|
||||||
|
cache.backend.null:
|
||||||
|
class: Drupal\Core\Cache\NullBackendFactory
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
parameters:
|
||||||
|
session.storage.options:
|
||||||
|
# Default ini options for sessions.
|
||||||
|
#
|
||||||
|
# Some distributions of Linux (most notably Debian) ship their PHP
|
||||||
|
# installations with garbage collection (gc) disabled. Since Drupal depends
|
||||||
|
# on PHP's garbage collection for clearing sessions, ensure that garbage
|
||||||
|
# collection occurs by using the most common settings.
|
||||||
|
# @default 1
|
||||||
|
gc_probability: 1
|
||||||
|
# @default 100
|
||||||
|
gc_divisor: 100
|
||||||
|
#
|
||||||
|
# Set session lifetime (in seconds), i.e. the time from the user's last
|
||||||
|
# visit to the active session may be deleted by the session garbage
|
||||||
|
# collector. When a session is deleted, authenticated users are logged out,
|
||||||
|
# and the contents of the user's $_SESSION variable is discarded.
|
||||||
|
# @default 200000
|
||||||
|
gc_maxlifetime: 200000
|
||||||
|
#
|
||||||
|
# Set session cookie lifetime (in seconds), i.e. the time from the session
|
||||||
|
# is created to the cookie expires, i.e. when the browser is expected to
|
||||||
|
# discard the cookie. The value 0 means "until the browser is closed".
|
||||||
|
# @default 2000000
|
||||||
|
cookie_lifetime: 0
|
||||||
|
#
|
||||||
|
# Drupal automatically generates a unique session cookie name based on the
|
||||||
|
# full domain name used to access the site. This mechanism is sufficient
|
||||||
|
# for most use-cases, including multi-site deployments. However, if it is
|
||||||
|
# desired that a session can be reused across different subdomains, the
|
||||||
|
# cookie domain needs to be set to the shared base domain. Doing so assures
|
||||||
|
# that users remain logged in as they cross between various subdomains.
|
||||||
|
# To maximize compatibility and normalize the behavior across user agents,
|
||||||
|
# the cookie domain should start with a dot.
|
||||||
|
#
|
||||||
|
# @default none
|
||||||
|
cookie_domain: '.eql.fr'
|
||||||
|
#
|
||||||
|
twig.config:
|
||||||
|
# Twig debugging:
|
||||||
|
#
|
||||||
|
# When debugging is enabled:
|
||||||
|
# - The markup of each Twig template is surrounded by HTML comments that
|
||||||
|
# contain theming information, such as template file name suggestions.
|
||||||
|
# - Note that this debugging markup will cause automated tests that directly
|
||||||
|
# check rendered HTML to fail. When running automated tests, 'debug'
|
||||||
|
# should be set to FALSE.
|
||||||
|
# - The dump() function can be used in Twig templates to output information
|
||||||
|
# about template variables.
|
||||||
|
# - Twig templates are automatically recompiled whenever the source code
|
||||||
|
# changes (see auto_reload below).
|
||||||
|
#
|
||||||
|
# For more information about debugging Twig templates, see
|
||||||
|
# https://www.drupal.org/node/1906392.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default false
|
||||||
|
debug: false
|
||||||
|
# Twig auto-reload:
|
||||||
|
#
|
||||||
|
# Automatically recompile Twig templates whenever the source code changes.
|
||||||
|
# If you don't provide a value for auto_reload, it will be determined
|
||||||
|
# based on the value of debug.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default null
|
||||||
|
auto_reload: null
|
||||||
|
# Twig cache:
|
||||||
|
#
|
||||||
|
# By default, Twig templates will be compiled and stored in the filesystem
|
||||||
|
# to increase performance. Disabling the Twig cache will recompile the
|
||||||
|
# templates from source each time they are used. In most cases the
|
||||||
|
# auto_reload setting above should be enabled rather than disabling the
|
||||||
|
# Twig cache.
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default true
|
||||||
|
cache: true
|
||||||
|
renderer.config:
|
||||||
|
# Renderer required cache contexts:
|
||||||
|
#
|
||||||
|
# The Renderer will automatically associate these cache contexts with every
|
||||||
|
# render array, hence varying every render array by these cache contexts.
|
||||||
|
#
|
||||||
|
# @default ['languages:language_interface', 'theme', 'user.permissions']
|
||||||
|
required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
|
||||||
|
# Renderer automatic placeholdering conditions:
|
||||||
|
#
|
||||||
|
# Drupal allows portions of the page to be automatically deferred when
|
||||||
|
# rendering to improve cache performance. That is especially helpful for
|
||||||
|
# cache contexts that vary widely, such as the active user. On some sites
|
||||||
|
# those may be different, however, such as sites with only a handful of
|
||||||
|
# users. If you know what the high-cardinality cache contexts are for your
|
||||||
|
# site, specify those here. If you're not sure, the defaults are fairly safe
|
||||||
|
# in general.
|
||||||
|
#
|
||||||
|
# For more information about rendering optimizations see
|
||||||
|
# https://www.drupal.org/developing/api/8/render/arrays/cacheability#optimizing
|
||||||
|
auto_placeholder_conditions:
|
||||||
|
# Max-age at or below which caching is not considered worthwhile.
|
||||||
|
#
|
||||||
|
# Disable by setting to -1.
|
||||||
|
#
|
||||||
|
# @default 0
|
||||||
|
max-age: 0
|
||||||
|
# Cache contexts with a high cardinality.
|
||||||
|
#
|
||||||
|
# Disable by setting to [].
|
||||||
|
#
|
||||||
|
# @default ['session', 'user']
|
||||||
|
contexts: ['session', 'user']
|
||||||
|
# Tags with a high invalidation frequency.
|
||||||
|
#
|
||||||
|
# Disable by setting to [].
|
||||||
|
#
|
||||||
|
# @default []
|
||||||
|
tags: []
|
||||||
|
# Cacheability debugging:
|
||||||
|
#
|
||||||
|
# Responses with cacheability metadata (CacheableResponseInterface instances)
|
||||||
|
# get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
|
||||||
|
#
|
||||||
|
# For more information about debugging cacheable responses, see
|
||||||
|
# https://www.drupal.org/developing/api/8/response/cacheable-response-interface
|
||||||
|
#
|
||||||
|
# Not recommended in production environments
|
||||||
|
# @default false
|
||||||
|
http.response.debug_cacheability_headers: false
|
||||||
|
factory.keyvalue:
|
||||||
|
{}
|
||||||
|
# Default key/value storage service to use.
|
||||||
|
# @default keyvalue.database
|
||||||
|
# default: keyvalue.database
|
||||||
|
# Collection-specific overrides.
|
||||||
|
# state: keyvalue.database
|
||||||
|
factory.keyvalue.expirable:
|
||||||
|
{}
|
||||||
|
# Default key/value expirable storage service to use.
|
||||||
|
# @default keyvalue.database.expirable
|
||||||
|
# default: keyvalue.database.expirable
|
||||||
|
# Allowed protocols for URL generation.
|
||||||
|
filter_protocols:
|
||||||
|
- http
|
||||||
|
- https
|
||||||
|
- ftp
|
||||||
|
- news
|
||||||
|
- nntp
|
||||||
|
- tel
|
||||||
|
- telnet
|
||||||
|
- mailto
|
||||||
|
- irc
|
||||||
|
- ssh
|
||||||
|
- sftp
|
||||||
|
- webcal
|
||||||
|
- rtsp
|
||||||
|
|
||||||
|
services:
|
||||||
|
cache_tags.invalidator.checksum:
|
||||||
|
class: Drupal\redis\Cache\RedisCacheTagsChecksum
|
||||||
|
arguments: ['@redis.factory']
|
||||||
|
tags:
|
||||||
|
- { name: cache_tags_invalidator }
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ assert_options(ASSERT_ACTIVE, TRUE);
|
|||||||
/**
|
/**
|
||||||
* Enable local development services.
|
* Enable local development services.
|
||||||
*/
|
*/
|
||||||
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
|
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/default/development.services.yml';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show all error messages, with backtrace information.
|
* Show all error messages, with backtrace information.
|
||||||
|
|||||||
+39
-27
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// @codingStandardsIgnoreFile
|
// phpcs:ignoreFile
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
@@ -282,7 +282,7 @@ $databases = [];
|
|||||||
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
|
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
|
||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
$settings['hash_salt'] = 'J3uCZFsrehabVLg4kix5DnlWoM-WZqkIQ_Nj0yfO8LffH6os3PhEvHEiYLSXP3Jk6RiklhX2jw';
|
$settings['hash_salt'] = 'z1BWnQhESiK-rmgqxa5rm2EIholCgXssuFBE_L8ahFZ8l_IHaNumk1b7D8MWs7DjyWf5F0h9VQ';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deployment identifier.
|
* Deployment identifier.
|
||||||
@@ -308,16 +308,18 @@ $settings['hash_salt'] = 'J3uCZFsrehabVLg4kix5DnlWoM-WZqkIQ_Nj0yfO8LffH6os3PhEvH
|
|||||||
$settings['update_free_access'] = FALSE;
|
$settings['update_free_access'] = FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fallback to HTTP for Update Manager.
|
* Fallback to HTTP for Update Manager and for fetching security advisories.
|
||||||
*
|
*
|
||||||
* If your Drupal site fails to connect to updates.drupal.org using HTTPS to
|
* If your site fails to connect to updates.drupal.org over HTTPS (either when
|
||||||
* fetch Drupal core, module and theme update status, you may uncomment this
|
* fetching data on available updates, or when fetching the feed of critical
|
||||||
* setting and set it to TRUE to allow an insecure fallback to HTTP. Note that
|
* security announcements), you may uncomment this setting and set it to TRUE to
|
||||||
* doing so will open your site up to a potential man-in-the-middle attack. You
|
* allow an insecure fallback to HTTP. Note that doing so will open your site up
|
||||||
* should instead attempt to resolve the issues before enabling this option.
|
* to a potential man-in-the-middle attack. You should instead attempt to
|
||||||
|
* resolve the issues before enabling this option.
|
||||||
* @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl
|
* @see https://www.drupal.org/docs/system-requirements/php-requirements#openssl
|
||||||
* @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack
|
* @see https://en.wikipedia.org/wiki/Man-in-the-middle_attack
|
||||||
* @see \Drupal\update\UpdateFetcher
|
* @see \Drupal\update\UpdateFetcher
|
||||||
|
* @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
|
||||||
*/
|
*/
|
||||||
# $settings['update_fetch_with_http_fallback'] = TRUE;
|
# $settings['update_fetch_with_http_fallback'] = TRUE;
|
||||||
|
|
||||||
@@ -385,17 +387,20 @@ $settings['update_free_access'] = FALSE;
|
|||||||
* Sets which headers to trust from your reverse proxy.
|
* Sets which headers to trust from your reverse proxy.
|
||||||
*
|
*
|
||||||
* Common values are:
|
* Common values are:
|
||||||
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
|
||||||
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
|
||||||
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
|
||||||
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
||||||
* - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
* - \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
||||||
*
|
*
|
||||||
* Note the default value of
|
* Note the default value of
|
||||||
* @code
|
* @code
|
||||||
* \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
* \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
||||||
* @endcode
|
* @endcode
|
||||||
* is not secure by default. The value should be set to only the specific
|
* is not secure by default. The value should be set to only the specific
|
||||||
* headers the reverse proxy uses. For example:
|
* headers the reverse proxy uses. For example:
|
||||||
* @code
|
* @code
|
||||||
* \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
* \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
||||||
* @endcode
|
* @endcode
|
||||||
* This would trust the following headers:
|
* This would trust the following headers:
|
||||||
* - X_FORWARDED_FOR
|
* - X_FORWARDED_FOR
|
||||||
@@ -403,11 +408,14 @@ $settings['update_free_access'] = FALSE;
|
|||||||
* - X_FORWARDED_PROTO
|
* - X_FORWARDED_PROTO
|
||||||
* - X_FORWARDED_PORT
|
* - X_FORWARDED_PORT
|
||||||
*
|
*
|
||||||
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR
|
||||||
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST
|
||||||
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT
|
||||||
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO
|
||||||
* @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
* @see \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED
|
||||||
* @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies
|
* @see \Symfony\Component\HttpFoundation\Request::setTrustedProxies
|
||||||
*/
|
*/
|
||||||
# $settings['reverse_proxy_trusted_headers'] = \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED;
|
# $settings['reverse_proxy_trusted_headers'] = \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_FOR | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_HOST | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PORT | \Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_PROTO | \Symfony\Component\HttpFoundation\Request::HEADER_FORWARDED;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -603,6 +611,21 @@ $settings['update_free_access'] = FALSE;
|
|||||||
# ini_set('pcre.backtrack_limit', 200000);
|
# ini_set('pcre.backtrack_limit', 200000);
|
||||||
# ini_set('pcre.recursion_limit', 200000);
|
# ini_set('pcre.recursion_limit', 200000);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Permissions-Policy header to disable Google FLoC.
|
||||||
|
*
|
||||||
|
* By default, Drupal sends the 'Permissions-Policy: interest-cohort=()' header
|
||||||
|
* to disable Google's Federated Learning of Cohorts feature, introduced in
|
||||||
|
* Chrome 89.
|
||||||
|
*
|
||||||
|
* See https://en.wikipedia.org/wiki/Federated_Learning_of_Cohorts for more
|
||||||
|
* information about FLoC.
|
||||||
|
*
|
||||||
|
* If you don't wish to disable FLoC in Chrome, you can set this value
|
||||||
|
* to FALSE.
|
||||||
|
*/
|
||||||
|
# $settings['block_interest_cohort'] = TRUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration overrides.
|
* Configuration overrides.
|
||||||
*
|
*
|
||||||
@@ -781,22 +804,11 @@ if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$databases['default']['default'] = array (
|
$databases['default']['default'] = array (
|
||||||
'database' => 'popsu_d9',
|
'database' => 'eql',
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => 'popsu',
|
'password' => 'eql',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'host' => 'mysql_d9',
|
'host' => 'mysql',
|
||||||
'port' => '3306',
|
|
||||||
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
|
||||||
'driver' => 'mysql',
|
|
||||||
);
|
|
||||||
|
|
||||||
$databases['popsu_d7']['default'] = array (
|
|
||||||
'database' => 'popsu_d7',
|
|
||||||
'username' => 'root',
|
|
||||||
'password' => 'popsu',
|
|
||||||
'prefix' => 'dbprefix_',
|
|
||||||
'host' => 'mysql_d7',
|
|
||||||
'port' => '3306',
|
'port' => '3306',
|
||||||
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
||||||
'driver' => 'mysql',
|
'driver' => 'mysql',
|
||||||
|
|||||||
+1
-1
Submodule src_d9 updated: 088fa4d866...15c043335e
Reference in New Issue
Block a user