Spremembe dev services / settings, http link v env, config export
parent
475f9b9033
commit
a3b0c35d3c
|
@ -8,7 +8,6 @@
|
||||||
# Ignore configuration files that may contain sensitive information
|
# Ignore configuration files that may contain sensitive information
|
||||||
/web/sites/*/*settings*.php
|
/web/sites/*/*settings*.php
|
||||||
!/web/sites/default/settings.php
|
!/web/sites/default/settings.php
|
||||||
/web/sites/*/services.yml
|
|
||||||
|
|
||||||
# Ignore paths that may contain user-generated content
|
# Ignore paths that may contain user-generated content
|
||||||
/web/sites/*/files
|
/web/sites/*/files
|
||||||
|
@ -29,7 +28,6 @@
|
||||||
/web/modules/contrib/
|
/web/modules/contrib/
|
||||||
!/web/modules/custom
|
!/web/modules/custom
|
||||||
/web/profiles/README.txt
|
/web/profiles/README.txt
|
||||||
/web/sites/development.services.yml
|
|
||||||
/web/sites/example.settings.local.php
|
/web/sites/example.settings.local.php
|
||||||
/web/sites/example.sites.php
|
/web/sites/example.sites.php
|
||||||
/web/sites/README.txt
|
/web/sites/README.txt
|
||||||
|
|
|
@ -20,6 +20,8 @@ content:
|
||||||
settings:
|
settings:
|
||||||
max_width: 0
|
max_width: 0
|
||||||
max_height: 0
|
max_height: 0
|
||||||
|
loading:
|
||||||
|
attribute: eager
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 0
|
weight: 0
|
||||||
region: content
|
region: content
|
||||||
|
|
|
@ -209,6 +209,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
operations:
|
operations:
|
||||||
id: operations
|
id: operations
|
||||||
table: block_content
|
table: block_content
|
||||||
|
|
|
@ -394,6 +394,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
group_column: value
|
group_column: value
|
||||||
group_columns: { }
|
group_columns: { }
|
||||||
group_rows: true
|
group_rows: true
|
||||||
|
@ -1272,6 +1281,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
group_column: value
|
group_column: value
|
||||||
group_columns: { }
|
group_columns: { }
|
||||||
group_rows: true
|
group_rows: true
|
||||||
|
|
|
@ -448,6 +448,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
group_column: value
|
group_column: value
|
||||||
group_columns: { }
|
group_columns: { }
|
||||||
group_rows: true
|
group_rows: true
|
||||||
|
|
|
@ -1172,6 +1172,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
access:
|
access:
|
||||||
type: perm
|
type: perm
|
||||||
options:
|
options:
|
||||||
|
|
|
@ -344,6 +344,15 @@ display:
|
||||||
date_format: short
|
date_format: short
|
||||||
custom_date_format: ''
|
custom_date_format: ''
|
||||||
timezone: ''
|
timezone: ''
|
||||||
|
tooltip:
|
||||||
|
date_format: ''
|
||||||
|
custom_date_format: ''
|
||||||
|
time_diff:
|
||||||
|
enabled: false
|
||||||
|
future_format: '@interval hence'
|
||||||
|
past_format: '@interval ago'
|
||||||
|
granularity: 2
|
||||||
|
refresh: 60
|
||||||
group_column: value
|
group_column: value
|
||||||
group_columns: { }
|
group_columns: { }
|
||||||
group_rows: true
|
group_rows: true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_URL="https://yufu-manifest.ddev.site"
|
BASE_URL="http://yufu-manifest.ddev.site"
|
||||||
JSONAPI_PATH="/jsonapi"
|
JSONAPI_PATH="/jsonapi"
|
||||||
FILE_PATH="/sites/default/files"
|
FILE_PATH="/sites/default/files"
|
||||||
ETHERPAD_URL="https://pisi.kompot.si"
|
ETHERPAD_URL="https://pisi.kompot.si"
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
# 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:
|
||||||
|
http.response.debug_cacheability_headers: true
|
||||||
|
cors.config:
|
||||||
|
enabled: true
|
||||||
|
# Specify allowed headers, like 'x-allowed-header'.
|
||||||
|
allowedHeaders: ['x-csrf-token','authorization','content-type','accept','origin','x-requested-with']
|
||||||
|
# Specify allowed request methods, specify ['*'] to allow all possible ones.
|
||||||
|
allowedMethods: ['*']
|
||||||
|
# Configure requests allowed from specific origins. Do not include trailing
|
||||||
|
# slashes with URLs.
|
||||||
|
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
|
||||||
|
services:
|
||||||
|
cache.backend.null:
|
||||||
|
class: Drupal\Core\Cache\NullBackendFactory
|
|
@ -0,0 +1,155 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// phpcs:ignoreFile
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Local development override configuration feature.
|
||||||
|
*
|
||||||
|
* To activate this feature, copy and rename it such that its path plus
|
||||||
|
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of
|
||||||
|
* 'sites/default/settings.php' and uncomment the commented lines that mention
|
||||||
|
* 'settings.local.php'.
|
||||||
|
*
|
||||||
|
* If you are using a site name in the path, such as 'sites/example.com', copy
|
||||||
|
* this file to 'sites/example.com/settings.local.php', and uncomment the lines
|
||||||
|
* at the bottom of 'sites/example.com/settings.php'.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assertions.
|
||||||
|
*
|
||||||
|
* The Drupal project primarily uses runtime assertions to enforce the
|
||||||
|
* expectations of the API by failing when incorrect calls are made by code
|
||||||
|
* under development.
|
||||||
|
*
|
||||||
|
* @see http://php.net/assert
|
||||||
|
* @see https://www.drupal.org/node/2492225
|
||||||
|
*
|
||||||
|
* It is strongly recommended that you set zend.assertions=1 in the PHP.ini file
|
||||||
|
* (It cannot be changed from .htaccess or runtime) on development machines and
|
||||||
|
* to 0 or -1 in production.
|
||||||
|
*
|
||||||
|
* @see https://wiki.php.net/rfc/expectations
|
||||||
|
*/
|
||||||
|
assert_options(ASSERT_ACTIVE, TRUE);
|
||||||
|
assert_options(ASSERT_EXCEPTION, TRUE);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable local development services.
|
||||||
|
*/
|
||||||
|
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show all error messages, with backtrace information.
|
||||||
|
*
|
||||||
|
* In case the error level could not be fetched from the database, as for
|
||||||
|
* example the database connection failed, we rely only on this value.
|
||||||
|
*/
|
||||||
|
$config['system.logging']['error_level'] = 'verbose';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable CSS and JS aggregation.
|
||||||
|
*/
|
||||||
|
$config['system.performance']['css']['preprocess'] = FALSE;
|
||||||
|
$config['system.performance']['js']['preprocess'] = FALSE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable the render cache.
|
||||||
|
*
|
||||||
|
* Note: you should test with the render cache enabled, to ensure the correct
|
||||||
|
* cacheability metadata is present. However, in the early stages of
|
||||||
|
* development, you may want to disable it.
|
||||||
|
*
|
||||||
|
* This setting disables the render cache by using the Null cache back-end
|
||||||
|
* defined by the development.services.yml file above.
|
||||||
|
*
|
||||||
|
* Only use this setting once the site has been installed.
|
||||||
|
*/
|
||||||
|
# $settings['cache']['bins']['render'] = 'cache.backend.null';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable caching for migrations.
|
||||||
|
*
|
||||||
|
* Uncomment the code below to only store migrations in memory and not in the
|
||||||
|
* database. This makes it easier to develop custom migrations.
|
||||||
|
*/
|
||||||
|
# $settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable Internal Page Cache.
|
||||||
|
*
|
||||||
|
* Note: you should test with Internal Page Cache enabled, to ensure the correct
|
||||||
|
* cacheability metadata is present. However, in the early stages of
|
||||||
|
* development, you may want to disable it.
|
||||||
|
*
|
||||||
|
* This setting disables the page cache by using the Null cache back-end
|
||||||
|
* defined by the development.services.yml file above.
|
||||||
|
*
|
||||||
|
* Only use this setting once the site has been installed.
|
||||||
|
*/
|
||||||
|
# $settings['cache']['bins']['page'] = 'cache.backend.null';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable Dynamic Page Cache.
|
||||||
|
*
|
||||||
|
* Note: you should test with Dynamic Page Cache enabled, to ensure the correct
|
||||||
|
* cacheability metadata is present (and hence the expected behavior). However,
|
||||||
|
* in the early stages of development, you may want to disable it.
|
||||||
|
*/
|
||||||
|
# $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allow test modules and themes to be installed.
|
||||||
|
*
|
||||||
|
* Drupal ignores test modules and themes by default for performance reasons.
|
||||||
|
* During development it can be useful to install test extensions for debugging
|
||||||
|
* purposes.
|
||||||
|
*/
|
||||||
|
# $settings['extension_discovery_scan_tests'] = TRUE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable access to rebuild.php.
|
||||||
|
*
|
||||||
|
* This setting can be enabled to allow Drupal's php and database cached
|
||||||
|
* storage to be cleared via the rebuild.php page. Access to this page can also
|
||||||
|
* be gained by generating a query string from rebuild_token_calculator.sh and
|
||||||
|
* using these parameters in a request to rebuild.php.
|
||||||
|
*/
|
||||||
|
$settings['rebuild_access'] = TRUE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Skip file system permissions hardening.
|
||||||
|
*
|
||||||
|
* The system module will periodically check the permissions of your site's
|
||||||
|
* site directory to ensure that it is not writable by the website user. For
|
||||||
|
* sites that are managed with a version control system, this can cause problems
|
||||||
|
* when files in that directory such as settings.php are updated, because the
|
||||||
|
* user pulling in the changes won't have permissions to modify files in the
|
||||||
|
* directory.
|
||||||
|
*/
|
||||||
|
$settings['skip_permissions_hardening'] = TRUE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exclude modules from configuration synchronization.
|
||||||
|
*
|
||||||
|
* On config export sync, no config or dependent config of any excluded module
|
||||||
|
* is exported. On config import sync, any config of any installed excluded
|
||||||
|
* module is ignored. In the exported configuration, it will be as if the
|
||||||
|
* excluded module had never been installed. When syncing configuration, if an
|
||||||
|
* excluded module is already installed, it will not be uninstalled by the
|
||||||
|
* configuration synchronization, and dependent configuration will remain
|
||||||
|
* intact. This affects only configuration synchronization; single import and
|
||||||
|
* export of configuration are not affected.
|
||||||
|
*
|
||||||
|
* Drupal does not validate or sanity check the list of excluded modules. For
|
||||||
|
* instance, it is your own responsibility to never exclude required modules,
|
||||||
|
* because it would mean that the exported configuration can not be imported
|
||||||
|
* anymore.
|
||||||
|
*
|
||||||
|
* This is an advanced feature and using it means opting out of some of the
|
||||||
|
* guarantees the configuration synchronization provides. It is not recommended
|
||||||
|
* to use this feature with modules that affect Drupal in a major way such as
|
||||||
|
* the language or field module.
|
||||||
|
*/
|
||||||
|
# $settings['config_exclude_modules'] = ['devel', 'stage_file_proxy'];
|
Loading…
Reference in New Issue