annotate sites/default/default.services.yml @ 19:fa3358dc1485 tip

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