- ServerName dev.phpmyadmin.rorschach.archi.fr
+ ServerName dev.phpmyadmin.rorschach.fr
ProxyPass / http://127.0.0.1:8981/
ProxyPassReverse / http://127.0.0.1:8981/
ProxyRequests Off
diff --git a/ressources/drupal/services.yml b/ressources/drupal/services.yml
new file mode 100644
index 0000000..45d986c
--- /dev/null
+++ b/ressources/drupal/services.yml
@@ -0,0 +1,173 @@
+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: 2000000
+ #
+ # 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: '.example.com'
+ #
+ 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, X-Drupal-Cache-Contexts and X-Drupal-Cache-Max-Age
+ # 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
+
+ # Configure Cross-Site HTTP requests (CORS).
+ # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
+ # for more information about the topic in general.
+ # Note: By default the configuration is disabled.
+ cors.config:
+ enabled: false
+ # Specify allowed headers, like 'x-allowed-header'.
+ allowedHeaders: []
+ # Specify allowed request methods, specify ['*'] to allow all possible ones.
+ allowedMethods: []
+ # Configure requests allowed from specific origins.
+ allowedOrigins: ['*']
+ # Sets the Access-Control-Expose-Headers header.
+ exposedHeaders: false
+ # Sets the Access-Control-Max-Age header.
+ maxAge: false
+ # Sets the Access-Control-Allow-Credentials header.
+ supportsCredentials: false
diff --git a/ressources/d9/settings.local.php b/ressources/drupal/settings.local.php
similarity index 100%
rename from ressources/d9/settings.local.php
rename to ressources/drupal/settings.local.php
diff --git a/ressources/d9/settings.php b/ressources/drupal/settings.php
similarity index 78%
rename from ressources/d9/settings.php
rename to ressources/drupal/settings.php
index a1ce106..001b18e 100644
--- a/ressources/d9/settings.php
+++ b/ressources/drupal/settings.php
@@ -1,6 +1,6 @@
'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
+ * ];
+ * @endcode
+ *
+ * You can optionally set a prefix for all database table names by using the
+ * 'prefix' setting. If a prefix is specified, the table name will be prepended
+ * with its value. Be sure to use valid database characters only, usually
+ * alphanumeric and underscore. If no prefix is desired, do not set the 'prefix'
+ * key or set its value to an empty string ''.
+ *
+ * For example, to have all database table prefixed with 'main_', set:
* @code
* 'prefix' => 'main_',
* @endcode
*
- * Per-table prefixes are deprecated as of Drupal 8.2, and will be removed in
- * Drupal 9.0. After that, only a single prefix for all tables will be
- * supported.
- *
- * To provide prefixes for specific tables, set 'prefix' as an array.
- * The array's keys are the table names and the values are the prefixes.
- * The 'default' element is mandatory and holds the prefix for any tables
- * not specified elsewhere in the array. Example:
- * @code
- * 'prefix' => [
- * 'default' => 'main_',
- * 'users' => 'shared_',
- * 'sessions' => 'shared_',
- * 'role' => 'shared_',
- * 'authmap' => 'shared_',
- * ],
- * @endcode
- * You can also use a reference to a schema/database as a prefix. This may be
- * useful if your Drupal installation exists in a schema that is not the default
- * or you want to access several databases from the same code base at the same
- * time.
- * Example:
- * @code
- * 'prefix' => [
- * 'default' => 'main.',
- * 'users' => 'shared.',
- * 'sessions' => 'shared.',
- * 'role' => 'shared.',
- * 'authmap' => 'shared.',
- * ];
- * @endcode
- * NOTE: MySQL and SQLite's definition of a schema is a database.
- *
* Advanced users can add or override initial commands to execute when
* connecting to the database server, as well as PDO connection settings. For
* example, to enable MySQL SELECT queries to exceed the max_join_size system
@@ -203,9 +185,9 @@ $databases = [];
* information on these defaults and the potential issues.
*
* More details can be found in the constructor methods for each driver:
- * - \Drupal\Core\Database\Driver\mysql\Connection::__construct()
- * - \Drupal\Core\Database\Driver\pgsql\Connection::__construct()
- * - \Drupal\Core\Database\Driver\sqlite\Connection::__construct()
+ * - \Drupal\mysql\Driver\Database\mysql\Connection::__construct()
+ * - \Drupal\pgsql\Driver\Database\pgsql\Connection::__construct()
+ * - \Drupal\sqlite\Driver\Database\sqlite\Connection::__construct()
*
* Sample Database configuration format for PostgreSQL (pgsql):
* @code
@@ -282,7 +264,7 @@ $databases = [];
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
* @endcode
*/
-$settings['hash_salt'] = 'J3uCZFsrehabVLg4kix5DnlWoM-WZqkIQ_Nj0yfO8LffH6os3PhEvHEiYLSXP3Jk6RiklhX2jw';
+$settings['hash_salt'] = 'ie6IPbhGUdzsDc_YShwBE7KG6hPAu_bSyPv9w9D0Y8uXiCDD4ZDjw1mDqAyDMotzwnyRpZRv0g';
/**
* Deployment identifier.
@@ -308,16 +290,18 @@ $settings['hash_salt'] = 'J3uCZFsrehabVLg4kix5DnlWoM-WZqkIQ_Nj0yfO8LffH6os3PhEvH
$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
- * fetch Drupal core, module and theme update status, you may uncomment this
- * setting and set it to TRUE to allow an insecure fallback to HTTP. Note that
- * doing so will open your site up to a potential man-in-the-middle attack. You
- * should instead attempt to resolve the issues before enabling this option.
+ * If your site fails to connect to updates.drupal.org over HTTPS (either when
+ * fetching data on available updates, or when fetching the feed of critical
+ * security announcements), you may uncomment this setting and set it to TRUE to
+ * allow an insecure fallback to HTTP. Note that doing so will open your site up
+ * 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://en.wikipedia.org/wiki/Man-in-the-middle_attack
* @see \Drupal\update\UpdateFetcher
+ * @see \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
*/
# $settings['update_fetch_with_http_fallback'] = TRUE;
@@ -374,10 +358,13 @@ $settings['update_free_access'] = FALSE;
# $settings['reverse_proxy'] = TRUE;
/**
- * Specify every reverse proxy IP address in your environment.
- * This setting is required if $settings['reverse_proxy'] is TRUE.
+ * Reverse proxy addresses.
+ *
+ * Specify every reverse proxy IP address in your environment, as an array of
+ * IPv4/IPv6 addresses or subnets in CIDR notation. This setting is required if
+ * $settings['reverse_proxy'] is TRUE.
*/
-# $settings['reverse_proxy_addresses'] = ['a.b.c.d', ...];
+# $settings['reverse_proxy_addresses'] = ['a.b.c.d', 'e.f.g.h/24', ...];
/**
* Reverse proxy trusted headers.
@@ -385,17 +372,20 @@ $settings['update_free_access'] = FALSE;
* Sets which headers to trust from your reverse proxy.
*
* 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
*
* Note the default value of
* @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
* is not secure by default. The value should be set to only the specific
* headers the reverse proxy uses. For example:
* @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
* This would trust the following headers:
* - X_FORWARDED_FOR
@@ -403,11 +393,14 @@ $settings['update_free_access'] = FALSE;
* - X_FORWARDED_PROTO
* - 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::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;
/**
@@ -515,6 +508,48 @@ $settings['update_free_access'] = FALSE;
*/
# $settings['file_public_path'] = 'sites/default/files';
+/**
+ * Additional public file schemes:
+ *
+ * Public schemes are URI schemes that allow download access to all users for
+ * all files within that scheme.
+ *
+ * The "public" scheme is always public, and the "private" scheme is always
+ * private, but other schemes, such as "https", "s3", "example", or others,
+ * can be either public or private depending on the site. By default, they're
+ * private, and access to individual files is controlled via
+ * hook_file_download().
+ *
+ * Typically, if a scheme should be public, a module makes it public by
+ * implementing hook_file_download(), and granting access to all users for all
+ * files. This could be either the same module that provides the stream wrapper
+ * for the scheme, or a different module that decides to make the scheme
+ * public. However, in cases where a site needs to make a scheme public, but
+ * is unable to add code in a module to do so, the scheme may be added to this
+ * variable, the result of which is that system_file_download() grants public
+ * access to all files within that scheme.
+ */
+# $settings['file_additional_public_schemes'] = ['example'];
+
+/**
+ * File schemes whose paths should not be normalized:
+ *
+ * Normally, Drupal normalizes '/./' and '/../' segments in file URIs in order
+ * to prevent unintended file access. For example, 'private://css/../image.png'
+ * is normalized to 'private://image.png' before checking access to the file.
+ *
+ * On Windows, Drupal also replaces '\' with '/' in URIs for the local
+ * filesystem.
+ *
+ * If file URIs with one or more scheme should not be normalized like this, then
+ * list the schemes here. For example, if 'porcelain://china/./plate.png' should
+ * not be normalized to 'porcelain://china/plate.png', then add 'porcelain' to
+ * this array. In this case, make sure that the module providing the 'porcelain'
+ * scheme does not allow unintended file access when using '/../' to move up the
+ * directory tree.
+ */
+# $settings['file_sa_core_2023_005_schemes'] = ['porcelain'];
+
/**
* Private file path:
*
@@ -578,7 +613,7 @@ $settings['update_free_access'] = FALSE;
*
* Note: This setting does not apply to installation and update pages.
*/
-# $settings['maintenance_theme'] = 'bartik';
+# $settings['maintenance_theme'] = 'claro';
/**
* PHP settings:
@@ -628,33 +663,6 @@ $settings['update_free_access'] = FALSE;
# $config['system.site']['name'] = 'My Drupal site';
# $config['user.settings']['anonymous'] = 'Visitor';
-/**
- * Fast 404 pages:
- *
- * Drupal can generate fully themed 404 pages. However, some of these responses
- * are for images or other resource files that are not displayed to the user.
- * This can waste bandwidth, and also generate server load.
- *
- * The options below return a simple, fast 404 page for URLs matching a
- * specific pattern:
- * - $config['system.performance']['fast_404']['exclude_paths']: A regular
- * expression to match paths to exclude, such as images generated by image
- * styles, or dynamically-resized images. The default pattern provided below
- * also excludes the private file system. If you need to add more paths, you
- * can add '|path' to the expression.
- * - $config['system.performance']['fast_404']['paths']: A regular expression to
- * match paths that should return a simple 404 page, rather than the fully
- * themed 404 page. If you don't have any aliases ending in htm or html you
- * can add '|s?html?' to the expression.
- * - $config['system.performance']['fast_404']['html']: The html to return for
- * simple 404 pages.
- *
- * Remove the leading hash signs if you would like to alter this functionality.
- */
-# $config['system.performance']['fast_404']['exclude_paths'] = '/\/(?:styles)|(?:system\/files)\//';
-# $config['system.performance']['fast_404']['paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
-# $config['system.performance']['fast_404']['html'] = '404 Not FoundNot Found
The requested URL "@path" was not found on this server.
';
-
/**
* Load services definition file.
*/
@@ -713,6 +721,8 @@ $settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
* @endcode
* will allow the site to run off of all variants of example.com and
* example.org, with all subdomains included.
+ *
+ * @see https://www.drupal.org/docs/installing-drupal/trusted-host-settings
*/
/**
@@ -762,6 +772,49 @@ $settings['entity_update_backup'] = TRUE;
*/
$settings['migrate_node_migrate_type_classic'] = FALSE;
+/**
+ * The default settings for migration sources.
+ *
+ * These settings are used as the default settings on the Credential form at
+ * /upgrade/credentials.
+ *
+ * - migrate_source_version - The version of the source database. This can be
+ * '6' or '7'. Defaults to '7'.
+ * - migrate_source_connection - The key in the $databases array for the source
+ * site.
+ * - migrate_file_public_path - The location of the source Drupal 6 or Drupal 7
+ * public files. This can be a local file directory containing the source
+ * Drupal 6 or Drupal 7 site (e.g /var/www/docroot), or the site address
+ * (e.g http://example.com).
+ * - migrate_file_private_path - The location of the source Drupal 7 private
+ * files. This can be a local file directory containing the source Drupal 7
+ * site (e.g /var/www/docroot), or empty to use the same value as Public
+ * files directory.
+ *
+ * Sample configuration for a drupal 6 source site with the source files in a
+ * local directory.
+ *
+ * @code
+ * $settings['migrate_source_version'] = '6';
+ * $settings['migrate_source_connection'] = 'migrate';
+ * $settings['migrate_file_public_path'] = '/var/www/drupal6';
+ * @endcode
+ *
+ * Sample configuration for a drupal 7 source site with public source files on
+ * the source site and the private files in a local directory.
+ *
+ * @code
+ * $settings['migrate_source_version'] = '7';
+ * $settings['migrate_source_connection'] = 'migrate';
+ * $settings['migrate_file_public_path'] = 'https://drupal7.com';
+ * $settings['migrate_file_private_path'] = '/var/www/drupal7';
+ * @endcode
+ */
+# $settings['migrate_source_connection'] = '';
+# $settings['migrate_source_version'] = '';
+# $settings['migrate_file_public_path'] = '';
+# $settings['migrate_file_private_path'] = '';
+
/**
* Load local development override configuration, if available.
*
@@ -775,50 +828,31 @@ $settings['migrate_node_migrate_type_classic'] = FALSE;
*
* Keep this code block at the end of this file to take full effect.
*/
-
+#
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}
+
$databases['default']['default'] = array (
- 'database' => 'popsu_d9',
- 'username' => 'root',
- 'password' => 'popsu',
+ 'database' => 'rorschach',
+ 'username' => 'rorschach',
+ 'password' => 'rorschach',
'prefix' => '',
- 'host' => 'mysql_d9',
+ 'host' => 'mysql',
'port' => '3306',
- 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
+ 'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'driver' => 'mysql',
+ 'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
-$databases['popsu_d7']['default'] = array (
- 'database' => 'popsu_d7',
- 'username' => 'root',
- 'password' => 'popsu',
- 'prefix' => 'dbprefix_',
- 'host' => 'mysql_d7',
- 'port' => '3306',
- 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
- 'driver' => 'mysql',
-);
$settings['config_sync_directory'] = '../config/sync';
-# Disable split config settings
-# https://www.prometsource.com/blog/configuration-split-managing-drupal-8-configuration-different-environments
-// $settings['config_split.config_split.prod']['status'] = FALSE;
-// $config['config_split.config_split.stage']['status'] = TRUE;
-
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = 'redis';
#$conf['redis_cache_socket'] = '/var/run/redis/redis.sock';
$settings['cache']['default'] = 'cache.backend.redis';
$settings['redis.connection']['base'] = '1';
$settings['cache_prefix'] = 'd9';
-
-
-
-// global $content_directories;
-// $content_directories['sync'] = $app_root.'/../content/sync';
-// $content_directories['sync'] = '../config/sync';