default.services.yml 8.1 KB

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