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-09-06 17:53:33 +02:00
|
|
|
SilverStripe\Control\Middleware\AllowedHostsMiddleware:
|
2017-06-23 05:08:08 +02:00
|
|
|
properties:
|
2017-09-06 17:53:33 +02:00
|
|
|
AllowedHosts: '`SS_ALLOWED_HOSTS`'
|
|
|
|
SilverStripe\Control\Middleware\TrustedProxyMiddleware:
|
2017-06-23 07:28:04 +02:00
|
|
|
properties:
|
2017-09-06 17:53:33 +02:00
|
|
|
TrustedProxyIPs: '`SS_TRUSTED_PROXY_IPS`'
|
2017-09-27 15:44:38 +02:00
|
|
|
SecurityRateLimitMiddleware:
|
|
|
|
class: SilverStripe\Control\Middleware\RateLimitMiddleware
|
|
|
|
properties:
|
|
|
|
ExtraKey: 'Security'
|
|
|
|
MaxAttempts: 10
|
|
|
|
Decay: 1
|
2017-09-13 15:10:55 +02:00
|
|
|
RateLimitedSecurityController:
|
|
|
|
class: SilverStripe\Control\Middleware\RequestHandlerMiddlewareAdapter
|
|
|
|
properties:
|
|
|
|
RequestHandler: '%$SilverStripe\Security\Security'
|
|
|
|
Middlewares:
|
2017-09-27 15:44:38 +02:00
|
|
|
- '%$SecurityRateLimitMiddleware'
|
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'
|