default.services.yml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. # 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. # 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. # 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. # Not recommended in production environments
  145. # @default false
  146. http.response.debug_cacheability_headers: false
  147. factory.keyvalue: {}
  148. # Default key/value storage service to use.
  149. # @default keyvalue.database
  150. # default: keyvalue.database
  151. # Collection-specific overrides.
  152. # state: keyvalue.database
  153. factory.keyvalue.expirable: {}
  154. # Default key/value expirable storage service to use.
  155. # @default keyvalue.database.expirable
  156. # default: keyvalue.database.expirable
  157. # Allowed protocols for URL generation.
  158. filter_protocols:
  159. - http
  160. - https
  161. - ftp
  162. - news
  163. - nntp
  164. - tel
  165. - telnet
  166. - mailto
  167. - irc
  168. - ssh
  169. - sftp
  170. - webcal
  171. - rtsp
  172. # Configure Cross-Site HTTP requests (CORS).
  173. # Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
  174. # for more information about the topic in general.
  175. # Note: By default the configuration is disabled.
  176. cors.config:
  177. enabled: false
  178. # Specify allowed headers, like 'x-allowed-header'.
  179. allowedHeaders: []
  180. # Specify allowed request methods, specify ['*'] to allow all possible ones.
  181. allowedMethods: []
  182. # Configure requests allowed from specific origins.
  183. allowedOrigins: ['*']
  184. # Sets the Access-Control-Expose-Headers header.
  185. exposedHeaders: false
  186. # Sets the Access-Control-Max-Age header.
  187. maxAge: false
  188. # Sets the Access-Control-Allow-Credentials header.
  189. supportsCredentials: false