2013-10-03 16:20:32 +02:00
|
|
|
---
|
|
|
|
Name: requestprocessors
|
|
|
|
---
|
2017-06-23 05:08:08 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2017-06-25 08:03:03 +02:00
|
|
|
SilverStripe\Control\Director:
|
2017-08-07 03:53:23 +02:00
|
|
|
# Note: Don't add 'class' config here, as it will affect ErrorDirector as well
|
2017-06-25 08:03:03 +02:00
|
|
|
properties:
|
|
|
|
Middlewares:
|
2017-07-21 12:17:18 +02:00
|
|
|
TrustedProxyMiddleware: '%$SilverStripe\Control\Middleware\TrustedProxyMiddleware'
|
|
|
|
AllowedHostsMiddleware: '%$SilverStripe\Control\Middleware\AllowedHostsMiddleware'
|
|
|
|
SessionMiddleware: '%$SilverStripe\Control\Middleware\SessionMiddleware'
|
|
|
|
RequestProcessorMiddleware: '%$SilverStripe\Control\RequestProcessor'
|
|
|
|
FlushMiddleware: '%$SilverStripe\Control\Middleware\FlushMiddleware'
|
2017-06-23 05:08:08 +02:00
|
|
|
SilverStripe\Control\AllowedHostsMiddleware:
|
|
|
|
properties:
|
|
|
|
AllowedHosts: "`SS_ALLOWED_HOSTS`"
|
2017-06-23 07:28:04 +02:00
|
|
|
SilverStripe\Control\TrustedProxyMiddleware:
|
|
|
|
properties:
|
|
|
|
TrustedProxyIPs: "`SS_TRUSTED_PROXY_IPS`"
|
2017-08-07 03:53:23 +02:00
|
|
|
---
|
|
|
|
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'
|