default.services.yml 7.4 KB

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