default.services.yml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. renderer.config:
  97. # Renderer required cache contexts:
  98. #
  99. # The Renderer will automatically associate these cache contexts with every
  100. # render array, hence varying every render array by these cache contexts.
  101. #
  102. # @default ['languages:language_interface', 'theme', 'user.permissions']
  103. required_cache_contexts: ['languages:language_interface', 'theme', 'user.permissions']
  104. # Renderer automatic placeholdering conditions:
  105. #
  106. # Drupal allows portions of the page to be automatically deferred when
  107. # rendering to improve cache performance. That is especially helpful for
  108. # cache contexts that vary widely, such as the active user. On some sites
  109. # those may be different, however, such as sites with only a handful of
  110. # users. If you know what the high-cardinality cache contexts are for your
  111. # site, specify those here. If you're not sure, the defaults are fairly safe
  112. # in general.
  113. #
  114. # For more information about rendering optimizations see
  115. # https://www.drupal.org/developing/api/8/render/arrays/cacheability#optimizing
  116. auto_placeholder_conditions:
  117. # Max-age at or below which caching is not considered worthwhile.
  118. #
  119. # Disable by setting to -1.
  120. #
  121. # @default 0
  122. max-age: 0
  123. # Cache contexts with a high cardinality.
  124. #
  125. # Disable by setting to [].
  126. #
  127. # @default ['session', 'user']
  128. contexts: ['session', 'user']
  129. # Tags with a high invalidation frequency.
  130. #
  131. # Disable by setting to [].
  132. #
  133. # @default []
  134. tags: []
  135. # Cacheability debugging:
  136. #
  137. # Responses with cacheability metadata (CacheableResponseInterface instances)
  138. # get X-Drupal-Cache-Tags, X-Drupal-Cache-Contexts and X-Drupal-Cache-Max-Age
  139. # headers.
  140. #
  141. # For more information about debugging cacheable responses, see
  142. # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
  143. #
  144. # Enabling cacheability debugging is not recommended in production
  145. # environments.
  146. # @default false
  147. http.response.debug_cacheability_headers: false
  148. factory.keyvalue: {}
  149. # Default key/value storage service to use.
  150. # @default keyvalue.database
  151. # default: keyvalue.database
  152. # Collection-specific overrides.
  153. # state: keyvalue.database
  154. factory.keyvalue.expirable: {}
  155. # Default key/value expirable storage service to use.
  156. # @default keyvalue.database.expirable
  157. # default: keyvalue.database.expirable
  158. # Allowed protocols for URL generation.
  159. filter_protocols:
  160. - http
  161. - https
  162. - ftp
  163. - news
  164. - nntp
  165. - tel
  166. - telnet
  167. - mailto
  168. - irc
  169. - ssh
  170. - sftp
  171. - webcal
  172. - rtsp
  173. # Configure Cross-Site HTTP requests (CORS).
  174. # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
  175. # for more information about the topic in general.
  176. # Note: By default the configuration is disabled.
  177. cors.config:
  178. enabled: false
  179. # Specify allowed headers, like 'x-allowed-header'.
  180. allowedHeaders: []
  181. # Specify allowed request methods, specify ['*'] to allow all possible ones.
  182. allowedMethods: []
  183. # Configure requests allowed from specific origins.
  184. allowedOrigins: ['*']
  185. # Sets the Access-Control-Expose-Headers header.
  186. exposedHeaders: false
  187. # Sets the Access-Control-Max-Age header.
  188. maxAge: false
  189. # Sets the Access-Control-Allow-Credentials header.
  190. supportsCredentials: false