From ade64141a5533578abce199809998df00cd3ccee Mon Sep 17 00:00:00 2001 From: Omar Date: Thu, 3 Aug 2023 14:56:40 +0200 Subject: [PATCH] Accept composer comments scripts --- composer.json | 3 +- web/robots.txt | 4 ++ web/sites/default/default.services.yml | 97 ++++++++++++++++++++------ web/sites/development.services.yml | 3 - web/sites/example.sites.php | 2 +- 5 files changed, 83 insertions(+), 26 deletions(-) diff --git a/composer.json b/composer.json index 7cb35f6..12a68bf 100644 --- a/composer.json +++ b/composer.json @@ -63,7 +63,8 @@ "dealerdirect/phpcodesniffer-composer-installer": true, "phpstan/extension-installer": true, "phpro/grumphp": true, - "metadrop/scripthor": true + "metadrop/scripthor": true, + "metadrop/composer-comments": true } }, "scripts": { diff --git a/web/robots.txt b/web/robots.txt index 18f8df8..ebcd04b 100644 --- a/web/robots.txt +++ b/web/robots.txt @@ -49,6 +49,8 @@ Disallow: /user/register Disallow: /user/password Disallow: /user/login Disallow: /user/logout +Disallow: /media/oembed +Disallow: /*/media/oembed # Paths (no clean URLs) Disallow: /index.php/admin/ Disallow: /index.php/comment/reply/ @@ -59,3 +61,5 @@ Disallow: /index.php/user/password Disallow: /index.php/user/register Disallow: /index.php/user/login Disallow: /index.php/user/logout +Disallow: /index.php/media/oembed +Disallow: /index.php/*/media/oembed diff --git a/web/sites/default/default.services.yml b/web/sites/default/default.services.yml index 45d986c..8a6cdf2 100644 --- a/web/sites/default/default.services.yml +++ b/web/sites/default/default.services.yml @@ -11,10 +11,11 @@ parameters: # @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. + # Set session lifetime (in seconds), i.e. the grace period for session + # data. Sessions are deleted by the session garbage collector after one + # session lifetime has elapsed since the user's last visit. When a session + # is deleted, authenticated users are logged out, and the contents of the + # user's session is discarded. # @default 200000 gc_maxlifetime: 200000 # @@ -36,6 +37,29 @@ parameters: # @default none # cookie_domain: '.example.com' # + # Set the SameSite cookie attribute: 'None', 'Lax', or 'Strict'. If set, + # this value will override the server value. See + # https://www.php.net/manual/en/session.security.ini.php for more + # information. + # @default no value + cookie_samesite: Lax + # + # Set the session ID string length. The length can be between 22 to 256. The + # PHP recommended value is 48. See + # https://www.php.net/manual/session.security.ini.php for more information. + # This value should be kept in sync with + # \Drupal\Core\Session\SessionConfiguration::__construct() + # @default 48 + sid_length: 48 + # + # Set the number of bits in encoded session ID character. The possible + # values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", + # ","). The PHP recommended value is 6. See + # https://www.php.net/manual/session.security.ini.php for more information. + # This value should be kept in sync with + # \Drupal\Core\Session\SessionConfiguration::__construct() + # @default 6 + sid_bits_per_character: 6 twig.config: # Twig debugging: # @@ -53,7 +77,7 @@ parameters: # For more information about debugging Twig templates, see # https://www.drupal.org/node/1906392. # - # Not recommended in production environments + # Enabling Twig debugging is not recommended in production environments. # @default false debug: false # Twig auto-reload: @@ -62,7 +86,7 @@ parameters: # 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 + # Enabling auto-reload is not recommended in production environments. # @default null auto_reload: null # Twig cache: @@ -73,9 +97,24 @@ parameters: # auto_reload setting above should be enabled rather than disabling the # Twig cache. # - # Not recommended in production environments + # Disabling the Twig cache is not recommended in production environments. # @default true cache: true + # File extensions: + # + # List of file extensions the Twig system is allowed to load via the + # twig.loader.filesystem service. Files with other extensions will not be + # loaded unless they are added here. For example, to allow a file named + # 'example.partial' to be loaded, add 'partial' to this list. To load files + # with no extension, add an empty string '' to the list. + # + # @default ['css', 'html', 'js', 'svg', 'twig'] + allowed_file_extensions: + - css + - html + - js + - svg + - twig renderer.config: # Renderer required cache contexts: # @@ -115,6 +154,14 @@ parameters: # # @default [] tags: [] + # Renderer cache debug: + # + # Allows cache debugging output for each rendered element. + # + # Enabling render cache debugging is not recommended in production + # environments. + # @default false + debug: false # Cacheability debugging: # # Responses with cacheability metadata (CacheableResponseInterface instances) @@ -124,19 +171,20 @@ parameters: # For more information about debugging cacheable responses, see # https://www.drupal.org/developing/api/8/response/cacheable-response-interface # - # Not recommended in production environments + # Enabling cacheability debugging is 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 + # 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 + # Default key/value expirable storage service to use. + # @default keyvalue.database.expirable + # default: keyvalue.database.expirable # Allowed protocols for URL generation. filter_protocols: - http @@ -153,17 +201,18 @@ parameters: - 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. + # 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. + # Configure requests allowed from specific origins. Do not include trailing + # slashes with URLs. allowedOrigins: ['*'] # Sets the Access-Control-Expose-Headers header. exposedHeaders: false @@ -171,3 +220,9 @@ parameters: maxAge: false # Sets the Access-Control-Allow-Credentials header. supportsCredentials: false + + queue.config: + # The maximum number of seconds to wait if a queue is temporarily suspended. + # This is not applicable when a queue is suspended but does not specify + # how long to wait before attempting to resume. + suspendMaximumWait: 30 diff --git a/web/sites/development.services.yml b/web/sites/development.services.yml index bad24a9..d2857c6 100644 --- a/web/sites/development.services.yml +++ b/web/sites/development.services.yml @@ -4,9 +4,6 @@ # 'example.settings.local.php' file, which sits next to this file. parameters: http.response.debug_cacheability_headers: true - twig.config: - debug: true - cache: false services: cache.backend.null: class: Drupal\Core\Cache\NullBackendFactory diff --git a/web/sites/example.sites.php b/web/sites/example.sites.php index daaf682..32dca95 100644 --- a/web/sites/example.sites.php +++ b/web/sites/example.sites.php @@ -1,6 +1,6 @@