default.services.yml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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 SameSite cookie attribute: 'None', 'Lax', or 'Strict'. If set,
  41. # this value will override the server value. See
  42. # https://www.php.net/manual/en/session.security.ini.php for more
  43. # information.
  44. # @default no value
  45. cookie_samesite: Lax
  46. #
  47. # Set the session ID string length. The length can be between 22 to 256. The
  48. # PHP recommended value is 48. See
  49. # https://www.php.net/manual/session.security.ini.php for more information.
  50. # This value should be kept in sync with
  51. # \Drupal\Core\Session\SessionConfiguration::__construct()
  52. # @default 48
  53. sid_length: 48
  54. #
  55. # Set the number of bits in encoded session ID character. The possible
  56. # values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-",
  57. # ","). The PHP recommended value is 6. See
  58. # https://www.php.net/manual/session.security.ini.php for more information.
  59. # This value should be kept in sync with
  60. # \Drupal\Core\Session\SessionConfiguration::__construct()
  61. # @default 6
  62. sid_bits_per_character: 6
  63. twig.config:
  64. # Twig debugging:
  65. #
  66. # When debugging is enabled:
  67. # - The markup of each Twig template is surrounded by HTML comments that
  68. # contain theming information, such as template file name suggestions.
  69. # - Note that this debugging markup will cause automated tests that directly
  70. # check rendered HTML to fail. When running automated tests, 'debug'
  71. # should be set to FALSE.
  72. # - The dump() function can be used in Twig templates to output information
  73. # about template variables.
  74. # - Twig templates are automatically recompiled whenever the source code
  75. # changes (see auto_reload below).
  76. #
  77. # For more information about debugging Twig templates, see
  78. # https://www.drupal.org/node/1906392.
  79. #
  80. # Enabling Twig debugging is not recommended in production environments.
  81. # @default false
  82. debug: false
  83. # Twig auto-reload:
  84. #
  85. # Automatically recompile Twig templates whenever the source code changes.
  86. # If you don't provide a value for auto_reload, it will be determined
  87. # based on the value of debug.
  88. #
  89. # Enabling auto-reload is not recommended in production environments.
  90. # @default null
  91. auto_reload: null
  92. # Twig cache:
  93. #
  94. # By default, Twig templates will be compiled and stored in the filesystem
  95. # to increase performance. Disabling the Twig cache will recompile the
  96. # templates from source each time they are used. In most cases the
  97. # auto_reload setting above should be enabled rather than disabling the
  98. # Twig cache.
  99. #
  100. # Disabling the Twig cache is not recommended in production environments.
  101. # @default true
  102. cache: true
  103. # File extensions:
  104. #
  105. # List of file extensions the Twig system is allowed to load via the
  106. # twig.loader.filesystem service. Files with other extensions will not be
  107. # loaded unless they are added here. For example, to allow a file named
  108. # 'example.partial' to be loaded, add 'partial' to this list. To load files
  109. # with no extension, add an empty string '' to the list.
  110. #
  111. # @default ['css', 'html', 'js', 'svg', 'twig']
  112. allowed_file_extensions:
  113. - css
  114. - html
  115. - js
  116. - svg
  117. - twig
  118. renderer.config:
  119. # Renderer required cache contexts:
  120. #
  121. # The Renderer will automatically associate these cache contexts with every
  122. # render array, hence varying every render array by these cache contexts.
  123. #
  124. # @default ['languages:language_interface', 'theme', 'user.permissions']
  125. required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
  126. # Renderer automatic placeholdering conditions:
  127. #
  128. # Drupal allows portions of the page to be automatically deferred when
  129. # rendering to improve cache performance. That is especially helpful for
  130. # cache contexts that vary widely, such as the active user. On some sites
  131. # those may be different, however, such as sites with only a handful of
  132. # users. If you know what the high-cardinality cache contexts are for your
  133. # site, specify those here. If you're not sure, the defaults are fairly safe
  134. # in general.
  135. #
  136. # For more information about rendering optimizations see
  137. # https://www.drupal.org/developing/api/8/render/arrays/cacheability#optimizing
  138. auto_placeholder_conditions:
  139. # Max-age at or below which caching is not considered worthwhile.
  140. #
  141. # Disable by setting to -1.
  142. #
  143. # @default 0
  144. max-age: 0
  145. # Cache contexts with a high cardinality.
  146. #
  147. # Disable by setting to [].
  148. #
  149. # @default ['session', 'user']
  150. contexts: ['session', 'user']
  151. # Tags with a high invalidation frequency.
  152. #
  153. # Disable by setting to [].
  154. #
  155. # @default []
  156. tags: []
  157. # Renderer cache debug:
  158. #
  159. # Allows cache debugging output for each rendered element.
  160. #
  161. # Enabling render cache debugging is not recommended in production
  162. # environments.
  163. # @default false
  164. debug: false
  165. # Cacheability debugging:
  166. #
  167. # Responses with cacheability metadata (CacheableResponseInterface instances)
  168. # get X-Drupal-Cache-Tags, X-Drupal-Cache-Contexts and X-Drupal-Cache-Max-Age
  169. # headers.
  170. #
  171. # For more information about debugging cacheable responses, see
  172. # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
  173. #
  174. # Enabling cacheability debugging is not recommended in production
  175. # environments.
  176. # @default false
  177. http.response.debug_cacheability_headers: false
  178. factory.keyvalue: {}
  179. # Default key/value storage service to use.
  180. # @default keyvalue.database
  181. # default: keyvalue.database
  182. # Collection-specific overrides.
  183. # state: keyvalue.database
  184. factory.keyvalue.expirable: {}
  185. # Default key/value expirable storage service to use.
  186. # @default keyvalue.database.expirable
  187. # default: keyvalue.database.expirable
  188. # Allowed protocols for URL generation.
  189. filter_protocols:
  190. - http
  191. - https
  192. - ftp
  193. - news
  194. - nntp
  195. - tel
  196. - telnet
  197. - mailto
  198. - irc
  199. - ssh
  200. - sftp
  201. - webcal
  202. - rtsp
  203. # Configure Cross-Site HTTP requests (CORS).
  204. # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
  205. # for more information about the topic in general.
  206. # Note: By default the configuration is disabled.
  207. cors.config:
  208. enabled: false
  209. # Specify allowed headers, like 'x-allowed-header'.
  210. allowedHeaders: []
  211. # Specify allowed request methods, specify ['*'] to allow all possible ones.
  212. allowedMethods: []
  213. # Configure requests allowed from specific origins. Do not include trailing
  214. # slashes with URLs.
  215. allowedOrigins: ['*']
  216. # Sets the Access-Control-Expose-Headers header.
  217. exposedHeaders: false
  218. # Sets the Access-Control-Max-Age header.
  219. maxAge: false
  220. # Sets the Access-Control-Allow-Credentials header.
  221. supportsCredentials: false
  222. queue.config:
  223. # The maximum number of seconds to wait if a queue is temporarily suspended.
  224. # This is not applicable when a queue is suspended but does not specify
  225. # how long to wait before attempting to resume.
  226. suspendMaximumWait: 30