mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
API: SS_TRUSTED_PROXY_HOST_HEADER replace with middleware config API: SS_TRUSTED_PROXY_PROTOCOL_HEADER replace with middleware config API: SS_TRUSTED_PROXY_IP_HEADER replace with middleware config API: Front-End-Https = “on” header no longer supported This middleware replaces the TRUSTED_PROXY setting and shifts its configuration out of the env vars and bootstrap and into the Director flow.
20 lines
672 B
YAML
20 lines
672 B
YAML
---
|
|
Name: requestprocessors
|
|
---
|
|
SilverStripe\Control\Director:
|
|
middlewares:
|
|
TrustedProxyMiddleware: '%$SilverStripe\Control\TrustedProxyMiddleware'
|
|
AllowedHostsMiddleware: '%$SilverStripe\Control\AllowedHostsMiddleware'
|
|
SessionMiddleware: 'SilverStripe\Control\SessionMiddleware'
|
|
RequestProcessor: 'SilverStripe\Control\RequestProcessor'
|
|
FlushMiddleware: '%$SilverStripe\Control\FlushMiddleware'
|
|
|
|
|
|
SilverStripe\Core\Injector\Injector:
|
|
SilverStripe\Control\AllowedHostsMiddleware:
|
|
properties:
|
|
AllowedHosts: "`SS_ALLOWED_HOSTS`"
|
|
SilverStripe\Control\TrustedProxyMiddleware:
|
|
properties:
|
|
TrustedProxyIPs: "`SS_TRUSTED_PROXY_IPS`"
|