default.services.yml

Same filename in this branch
  1. 9 sites/default/default.services.yml
  2. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/default.services.yml
Same filename in other branches
  1. 8.9.x sites/default/default.services.yml
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/default.services.yml
  3. 8.9.x core/assets/scaffold/files/default.services.yml
  4. 10 sites/default/default.services.yml
  5. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/default.services.yml
  6. 10 core/assets/scaffold/files/default.services.yml
  7. 11.x sites/default/default.services.yml
  8. 11.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-assets-fixture/assets/default.services.yml
  9. 11.x core/assets/scaffold/files/default.services.yml
  10. 11.x core/modules/package_manager/tests/fixtures/fake_site/sites/default/default.services.yml
core/assets/scaffold/files/default.services.yml

File

core/assets/scaffold/files/default.services.yml

View source
  1. parameters:
  2. session.storage.options:
  3. # Default ini options for sessions.
  4. #
  5. # Some distributions of Linux (most notably Debian) ship their PHP
  6. # installations with garbage collection (gc) disabled. Since Drupal depends
  7. # on PHP's garbage collection for clearing sessions, ensure that garbage
  8. # collection occurs by using the most common settings.
  9. # @default 1
  10. gc_probability: 1
  11. # @default 100
  12. gc_divisor: 100
  13. #
  14. # Set session lifetime (in seconds), i.e. the grace period for session
  15. # data. Sessions are deleted by the session garbage collector after one
  16. # session lifetime has elapsed since the user's last visit. When a session
  17. # is deleted, authenticated users are logged out, and the contents of the
  18. # user's session is discarded.
  19. # @default 200000
  20. gc_maxlifetime: 200000
  21. #
  22. # Set session cookie lifetime (in seconds), i.e. the time from the session
  23. # is created to the cookie expires, i.e. when the browser is expected to
  24. # discard the cookie. The value 0 means "until the browser is closed".
  25. # @default 2000000
  26. cookie_lifetime: 2000000
  27. #
  28. # Drupal automatically generates a unique session cookie name based on the
  29. # full domain name used to access the site. This mechanism is sufficient
  30. # for most use-cases, including multi-site deployments. However, if it is
  31. # desired that a session can be reused across different subdomains, the
  32. # cookie domain needs to be set to the shared base domain. Doing so assures
  33. # that users remain logged in as they cross between various subdomains.
  34. # To maximize compatibility and normalize the behavior across user agents,
  35. # the cookie domain should start with a dot.
  36. #
  37. # @default none
  38. # cookie_domain: '.example.com'
  39. #
  40. # Set the session ID string length. The length can be between 22 to 256. The
  41. # PHP recommended value is 48. See
  42. # https://www.php.net/manual/session.security.ini.php for more information.
  43. # This value should be kept in sync with
  44. # \Drupal\Core\Session\SessionConfiguration::__construct()
  45. # @default 48
  46. sid_length: 48
  47. #
  48. # Set the number of bits in encoded session ID character. The possible
  49. # values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-",
  50. # ","). The PHP recommended value is 6. See
  51. # https://www.php.net/manual/session.security.ini.php for more information.
  52. # This value should be kept in sync with
  53. # \Drupal\Core\Session\SessionConfiguration::__construct()
  54. # @default 6
  55. sid_bits_per_character: 6
  56. twig.config:
  57. # Twig debugging:
  58. #
  59. # When debugging is enabled:
  60. # - The markup of each Twig template is surrounded by HTML comments that
  61. # contain theming information, such as template file name suggestions.
  62. # - Note that this debugging markup will cause automated tests that directly
  63. # check rendered HTML to fail. When running automated tests, 'debug'
  64. # should be set to FALSE.
  65. # - The dump() function can be used in Twig templates to output information
  66. # about template variables.
  67. # - Twig templates are automatically recompiled whenever the source code
  68. # changes (see auto_reload below).
  69. #
  70. # For more information about debugging Twig templates, see
  71. # https://www.drupal.org/node/1906392.
  72. #
  73. # Enabling Twig debugging is not recommended in production environments.
  74. # @default false
  75. debug: false
  76. # Twig auto-reload:
  77. #
  78. # Automatically recompile Twig templates whenever the source code changes.
  79. # If you don't provide a value for auto_reload, it will be determined
  80. # based on the value of debug.
  81. #
  82. # Enabling auto-reload is not recommended in production environments.
  83. # @default null
  84. auto_reload: null
  85. # Twig cache:
  86. #
  87. # By default, Twig templates will be compiled and stored in the filesystem
  88. # to increase performance. Disabling the Twig cache will recompile the
  89. # templates from source each time they are used. In most cases the
  90. # auto_reload setting above should be enabled rather than disabling the
  91. # Twig cache.
  92. #
  93. # Disabling the Twig cache is not recommended in production environments.
  94. # @default true
  95. cache: true
  96. # File extensions:
  97. #
  98. # List of file extensions the Twig system is allowed to load via the
  99. # twig.loader.filesystem service. Files with other extensions will not be
  100. # loaded unless they are added here. For example, to allow a file named
  101. # 'example.partial' to be loaded, add 'partial' to this list. To load files
  102. # with no extension, add an empty string '' to the list.
  103. #
  104. # @default ['css', 'html', 'js', 'svg', 'twig']
  105. allowed_file_extensions:
  106. - css
  107. - html
  108. - js
  109. - svg
  110. - twig
  111. renderer.config:
  112. # Renderer required cache contexts:
  113. #
  114. # The Renderer will automatically associate these cache contexts with every
  115. # render array, hence varying every render array by these cache contexts.
  116. #
  117. # @default ['languages:language_interface', 'theme', 'user.permissions']
  118. required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
  119. # Renderer automatic placeholdering conditions:
  120. #
  121. # Drupal allows portions of the page to be automatically deferred when
  122. # rendering to improve cache performance. That is especially helpful for
  123. # cache contexts that vary widely, such as the active user. On some sites
  124. # those may be different, however, such as sites with only a handful of
  125. # users. If you know what the high-cardinality cache contexts are for your
  126. # site, specify those here. If you're not sure, the defaults are fairly safe
  127. # in general.
  128. #
  129. # For more information about rendering optimizations see
  130. # https://www.drupal.org/developing/api/8/render/arrays/cacheability#optimizing
  131. auto_placeholder_conditions:
  132. # Max-age at or below which caching is not considered worthwhile.
  133. #
  134. # Disable by setting to -1.
  135. #
  136. # @default 0
  137. max-age: 0
  138. # Cache contexts with a high cardinality.
  139. #
  140. # Disable by setting to [].
  141. #
  142. # @default ['session', 'user']
  143. contexts: ['session', 'user']
  144. # Tags with a high invalidation frequency.
  145. #
  146. # Disable by setting to [].
  147. #
  148. # @default []
  149. tags: []
  150. # Renderer cache debug:
  151. #
  152. # Allows cache debugging output for each rendered element.
  153. #
  154. # Enabling render cache debugging is not recommended in production
  155. # environments.
  156. # @default false
  157. debug: false
  158. # Cacheability debugging:
  159. #
  160. # Responses with cacheability metadata (CacheableResponseInterface instances)
  161. # get X-Drupal-Cache-Tags, X-Drupal-Cache-Contexts and X-Drupal-Cache-Max-Age
  162. # headers.
  163. #
  164. # For more information about debugging cacheable responses, see
  165. # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
  166. #
  167. # Enabling cacheability debugging is not recommended in production
  168. # environments.
  169. # @default false
  170. http.response.debug_cacheability_headers: false
  171. factory.keyvalue: {}
  172. # Default key/value storage service to use.
  173. # @default keyvalue.database
  174. # default: keyvalue.database
  175. # Collection-specific overrides.
  176. # state: keyvalue.database
  177. factory.keyvalue.expirable: {}
  178. # Default key/value expirable storage service to use.
  179. # @default keyvalue.database.expirable
  180. # default: keyvalue.database.expirable
  181. # Allowed protocols for URL generation.
  182. filter_protocols:
  183. - http
  184. - https
  185. - ftp
  186. - news
  187. - nntp
  188. - tel
  189. - telnet
  190. - mailto
  191. - irc
  192. - ssh
  193. - sftp
  194. - webcal
  195. - rtsp
  196. # Configure Cross-Site HTTP requests (CORS).
  197. # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
  198. # for more information about the topic in general.
  199. # Note: By default the configuration is disabled.
  200. cors.config:
  201. enabled: false
  202. # Specify allowed headers, like 'x-allowed-header'.
  203. allowedHeaders: []
  204. # Specify allowed request methods, specify ['*'] to allow all possible ones.
  205. allowedMethods: []
  206. # Configure requests allowed from specific origins. Do not include trailing
  207. # slashes with URLs.
  208. allowedOrigins: ['*']
  209. # Sets the Access-Control-Expose-Headers header.
  210. exposedHeaders: false
  211. # Sets the Access-Control-Max-Age header.
  212. maxAge: false
  213. # Sets the Access-Control-Allow-Credentials header.
  214. supportsCredentials: false

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.