readme and settings files
This commit is contained in:
@@ -24,32 +24,32 @@ git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-rorsc
|
|||||||
```
|
```
|
||||||
|
|
||||||
submodules :
|
submodules :
|
||||||
- https://figureslibres.io/gogs/bachir/rorschach-d9
|
- https://figureslibres.io/gogs/bachir/drupal-rorschach
|
||||||
|
|
||||||
### setup /sites/default/settings.php
|
### setup /sites/default/settings.php
|
||||||
|
|
||||||
```
|
```
|
||||||
cp -r ressources/d9/settings.php src_d9/web/sites/default/
|
cp -r ressources/drupal/settings.php src/web/sites/default/
|
||||||
cp -r ressources/d9/settings.local.php src_d9/web/sites/default/
|
cp -r ressources/drupal/settings.local.php src/web/sites/default/
|
||||||
|
cp -r ressources/drupal/services.yml src/web/sites/default/
|
||||||
```
|
```
|
||||||
|
|
||||||
### get the sites/default/files folder
|
### get the sites/default/files folder
|
||||||
rsync the files from you know where (if you don't, you don't) to src_d7/sites/default/files/ and src_d9/web/sites/default/files/
|
rsync the files from you know where (if you don't, you don't) to src/sites/default/files/
|
||||||
|
|
||||||
### xdebug
|
### xdebug
|
||||||
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini``` and edit the ```xdebug.remote_host``` ip to your host locale ip (e.g. : 192.168.0.23) (or once the docker is started to the host ip from the container point of vu e.g. 172.21.0.1)
|
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini``` and edit the ```xdebug.remote_host``` ip to your host locale ip (e.g. : 192.168.0.23) (or once the docker is started to the host ip from the container point of vu e.g. 172.21.0.1)
|
||||||
|
|
||||||
## Mysql
|
## Mysql
|
||||||
Copy your-sql-dump.sql files into ```./ressources/rorschach_d7.sql``` and ```./ressources/rorschach_d9.sql```
|
Copy your-sql-dump.sql files into ```./ressources/rorschach.sql```
|
||||||
They will be automaticly imported into the mysql containers dbs (only) on the first docker-compose up
|
They will be automaticly imported into the mysql containers dbs (only) on the first docker-compose up
|
||||||
|
|
||||||
## Hosts and reverse proxy
|
## Hosts and reverse proxy
|
||||||
|
|
||||||
add to your /etc/hosts :
|
add to your /etc/hosts :
|
||||||
```
|
```
|
||||||
127.0.0.1 dev.d7.rorschach.archi.fr
|
127.0.0.1 dev.rorschach.fr
|
||||||
127.0.0.1 dev.d9.rorschach.archi.fr
|
127.0.0.1 dev.phpmyadmin.rorschach.fr
|
||||||
127.0.0.1 dev.phpmyadmin.rorschach.archi.fr
|
|
||||||
```
|
```
|
||||||
configure your vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
configure your vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ sudo mkdir /etc/var/log/rorschach
|
|||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name dev.d7.rorschach.archi.fr dev.d9.rorschach.archi.fr;
|
server_name dev.rorschach.fr;
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /var/log/nginx/rorschach/error.log error;
|
error_log /var/log/nginx/rorschach/error.log error;
|
||||||
@@ -82,7 +82,7 @@ server {
|
|||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name dev.phpmyadmin.rorschach.archi.fr;
|
server_name dev.phpmyadmin.rorschach.fr;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8981;
|
proxy_pass http://127.0.0.1:8981;
|
||||||
@@ -100,7 +100,7 @@ server {
|
|||||||
### apache
|
### apache
|
||||||
```apache
|
```apache
|
||||||
<Virtualhost *:80>
|
<Virtualhost *:80>
|
||||||
ServerName dev.d7.rorschach.archi.fr
|
ServerName dev.rorschach.fr
|
||||||
ProxyPass / http://127.0.0.1:8980/
|
ProxyPass / http://127.0.0.1:8980/
|
||||||
ProxyPassReverse / http://127.0.0.1:8980/
|
ProxyPassReverse / http://127.0.0.1:8980/
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
@@ -110,17 +110,7 @@ server {
|
|||||||
proxy_busy_buffers_size 256k;
|
proxy_busy_buffers_size 256k;
|
||||||
</Virtualhost>
|
</Virtualhost>
|
||||||
<Virtualhost *:80>
|
<Virtualhost *:80>
|
||||||
ServerName dev.d9.rorschach.archi.fr
|
ServerName dev.phpmyadmin.rorschach.fr
|
||||||
ProxyPass / http://127.0.0.1:8980/
|
|
||||||
ProxyPassReverse / http://127.0.0.1:8980/
|
|
||||||
ProxyRequests Off
|
|
||||||
ProxyPreserveHost On
|
|
||||||
proxy_buffer_size 128k;
|
|
||||||
proxy_buffers 4 256k;
|
|
||||||
proxy_busy_buffers_size 256k;
|
|
||||||
</Virtualhost>
|
|
||||||
<Virtualhost *:80>
|
|
||||||
ServerName dev.phpmyadmin.rorschach.archi.fr
|
|
||||||
ProxyPass / http://127.0.0.1:8981/
|
ProxyPass / http://127.0.0.1:8981/
|
||||||
ProxyPassReverse / http://127.0.0.1:8981/
|
ProxyPassReverse / http://127.0.0.1:8981/
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// @codingStandardsIgnoreFile
|
// phpcs:ignoreFile
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
@@ -138,50 +138,32 @@ $databases = [];
|
|||||||
* request as needed. The fourth line creates a new database with a name of
|
* request as needed. The fourth line creates a new database with a name of
|
||||||
* "extra".
|
* "extra".
|
||||||
*
|
*
|
||||||
* You can optionally set prefixes for some or all database table names
|
* For MySQL, MariaDB or equivalent databases the 'isolation_level' option can
|
||||||
* by using the 'prefix' setting. If a prefix is specified, the table
|
* be set. The recommended transaction isolation level for Drupal sites is
|
||||||
* name will be prepended with its value. Be sure to use valid database
|
* 'READ COMMITTED'. The 'REPEATABLE READ' option is supported but can result
|
||||||
* characters only, usually alphanumeric and underscore. If no prefixes
|
* in deadlocks, the other two options are 'READ UNCOMMITTED' and 'SERIALIZABLE'.
|
||||||
* are desired, leave it as an empty string ''.
|
* They are available but not supported; use them at your own risk. For more
|
||||||
|
* info:
|
||||||
|
* https://dev.mysql.com/doc/refman/5.7/en/innodb-transaction-isolation-levels.html
|
||||||
*
|
*
|
||||||
* To have all database names prefixed, set 'prefix' as a string:
|
* On your settings.php, change the isolation level:
|
||||||
|
* @code
|
||||||
|
* $databases['default']['default']['init_commands'] = [
|
||||||
|
* 'isolation_level' => '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
|
* @code
|
||||||
* 'prefix' => 'main_',
|
* 'prefix' => 'main_',
|
||||||
* @endcode
|
* @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
|
* Advanced users can add or override initial commands to execute when
|
||||||
* connecting to the database server, as well as PDO connection settings. For
|
* 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
|
* 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.
|
* information on these defaults and the potential issues.
|
||||||
*
|
*
|
||||||
* More details can be found in the constructor methods for each driver:
|
* More details can be found in the constructor methods for each driver:
|
||||||
* - \Drupal\Core\Database\Driver\mysql\Connection::__construct()
|
* - \Drupal\mysql\Driver\Database\mysql\Connection::__construct()
|
||||||
* - \Drupal\Core\Database\Driver\pgsql\Connection::__construct()
|
* - \Drupal\pgsql\Driver\Database\pgsql\Connection::__construct()
|
||||||
* - \Drupal\Core\Database\Driver\sqlite\Connection::__construct()
|
* - \Drupal\sqlite\Driver\Database\sqlite\Connection::__construct()
|
||||||
*
|
*
|
||||||
* Sample Database configuration format for PostgreSQL (pgsql):
|
* Sample Database configuration format for PostgreSQL (pgsql):
|
||||||
* @code
|
* @code
|
||||||
@@ -282,7 +264,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'] = 'ie6IPbhGUdzsDc_YShwBE7KG6hPAu_bSyPv9w9D0Y8uXiCDD4ZDjw1mDqAyDMotzwnyRpZRv0g';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deployment identifier.
|
* Deployment identifier.
|
||||||
@@ -308,16 +290,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;
|
||||||
|
|
||||||
@@ -374,10 +358,13 @@ $settings['update_free_access'] = FALSE;
|
|||||||
# $settings['reverse_proxy'] = TRUE;
|
# $settings['reverse_proxy'] = TRUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify every reverse proxy IP address in your environment.
|
* Reverse proxy addresses.
|
||||||
* This setting is required if $settings['reverse_proxy'] is TRUE.
|
*
|
||||||
|
* 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.
|
* Reverse proxy trusted headers.
|
||||||
@@ -385,17 +372,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 +393,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;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -515,6 +508,48 @@ $settings['update_free_access'] = FALSE;
|
|||||||
*/
|
*/
|
||||||
# $settings['file_public_path'] = 'sites/default/files';
|
# $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:
|
* Private file path:
|
||||||
*
|
*
|
||||||
@@ -578,7 +613,7 @@ $settings['update_free_access'] = FALSE;
|
|||||||
*
|
*
|
||||||
* Note: This setting does not apply to installation and update pages.
|
* Note: This setting does not apply to installation and update pages.
|
||||||
*/
|
*/
|
||||||
# $settings['maintenance_theme'] = 'bartik';
|
# $settings['maintenance_theme'] = 'claro';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHP settings:
|
* PHP settings:
|
||||||
@@ -628,33 +663,6 @@ $settings['update_free_access'] = FALSE;
|
|||||||
# $config['system.site']['name'] = 'My Drupal site';
|
# $config['system.site']['name'] = 'My Drupal site';
|
||||||
# $config['user.settings']['anonymous'] = 'Visitor';
|
# $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'] = '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load services definition file.
|
* Load services definition file.
|
||||||
*/
|
*/
|
||||||
@@ -713,6 +721,8 @@ $settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
|
|||||||
* @endcode
|
* @endcode
|
||||||
* will allow the site to run off of all variants of example.com and
|
* will allow the site to run off of all variants of example.com and
|
||||||
* example.org, with all subdomains included.
|
* 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;
|
$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.
|
* 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.
|
* Keep this code block at the end of this file to take full effect.
|
||||||
*/
|
*/
|
||||||
|
#
|
||||||
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
|
||||||
include $app_root . '/' . $site_path . '/settings.local.php';
|
include $app_root . '/' . $site_path . '/settings.local.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$databases['default']['default'] = array (
|
$databases['default']['default'] = array (
|
||||||
'database' => 'popsu_d9',
|
'database' => 'rorschach',
|
||||||
'username' => 'root',
|
'username' => 'rorschach',
|
||||||
'password' => 'popsu',
|
'password' => 'rorschach',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'host' => 'mysql_d9',
|
'host' => 'mysql',
|
||||||
'port' => '3306',
|
'port' => '3306',
|
||||||
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
|
||||||
'driver' => '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';
|
$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']['interface'] = 'PhpRedis';
|
||||||
$settings['redis.connection']['host'] = 'redis';
|
$settings['redis.connection']['host'] = 'redis';
|
||||||
#$conf['redis_cache_socket'] = '/var/run/redis/redis.sock';
|
#$conf['redis_cache_socket'] = '/var/run/redis/redis.sock';
|
||||||
$settings['cache']['default'] = 'cache.backend.redis';
|
$settings['cache']['default'] = 'cache.backend.redis';
|
||||||
$settings['redis.connection']['base'] = '1';
|
$settings['redis.connection']['base'] = '1';
|
||||||
$settings['cache_prefix'] = 'd9';
|
$settings['cache_prefix'] = 'd9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// global $content_directories;
|
|
||||||
// $content_directories['sync'] = $app_root.'/../content/sync';
|
|
||||||
// $content_directories['sync'] = '../config/sync';
|
|
||||||
Reference in New Issue
Block a user