default.services.yml

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

File

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

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

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