File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -93,3 +93,6 @@ WEBDAV_HOMES_DIR=
9393# By default, it will log in the standard Symfony directory: var/log/prod.log (for production)
9494# You can use /dev/null here if you want to discard logs entirely
9595LOG_FILE_PATH = " %kernel.logs_dir%/%kernel.environment%.log"
96+
97+ # By default, we trust '127.0.0.1,REMOTE_ADDR'
98+ TRUSTED_PROXIES = 127.0.0.1,REMOTE_ADDR
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ framework:
55 # csrf_protection: true
66 http_method_override : false
77
8+ trusted_proxies : ' %trusted_proxies%'
9+
810 # Enables session support. Note that the session will ONLY be started if you read or write from it.
911 # Remove or comment this section to explicitly disable session support.
1012 session :
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ parameters:
1313 default_birthday_reminder_offset : " PT9H"
1414 caldav_enabled : " %env(bool:CALDAV_ENABLED)%"
1515 carddav_enabled : " %env(bool:CARDDAV_ENABLED)%"
16+ trusted_proxies : ' %env(default:default_trusted_proxies:TRUSTED_PROXIES)%'
17+ default_trusted_proxies : ' 127.0.0.1,REMOTE_ADDR'
1618
1719services :
1820 # default configuration for services in *this* file
You can’t perform that action at this time.
0 commit comments