mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
0681567102
* BUG Fix flushing on live mode Fixes #7217 * Clarify injector service documentation
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
---
|
|
Name: requestprocessors
|
|
---
|
|
SilverStripe\Core\Injector\Injector:
|
|
SilverStripe\Control\Director:
|
|
# Note: Don't add 'class' config here, as it will affect ErrorDirector as well
|
|
properties:
|
|
Middlewares:
|
|
TrustedProxyMiddleware: '%$SilverStripe\Control\Middleware\TrustedProxyMiddleware'
|
|
AllowedHostsMiddleware: '%$SilverStripe\Control\Middleware\AllowedHostsMiddleware'
|
|
SessionMiddleware: '%$SilverStripe\Control\Middleware\SessionMiddleware'
|
|
RequestProcessorMiddleware: '%$SilverStripe\Control\RequestProcessor'
|
|
FlushMiddleware: '%$SilverStripe\Control\Middleware\FlushMiddleware'
|
|
SilverStripe\Control\AllowedHostsMiddleware:
|
|
properties:
|
|
AllowedHosts: "`SS_ALLOWED_HOSTS`"
|
|
SilverStripe\Control\TrustedProxyMiddleware:
|
|
properties:
|
|
TrustedProxyIPs: "`SS_TRUSTED_PROXY_IPS`"
|
|
---
|
|
Name: errorrequestprocessors
|
|
After:
|
|
- requestprocessors
|
|
---
|
|
SilverStripe\Core\Injector\Injector:
|
|
# Note: If Director config changes, take note it will affect this config too
|
|
SilverStripe\Core\Startup\ErrorDirector: '%$SilverStripe\Control\Director'
|