Skip to content

Commit 3f5697e

Browse files
author
tchapi
committed
chore
1 parent 9489928 commit 3f5697e

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
9595
LOG_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

config/packages/framework.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

config/services.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1719
services:
1820
# default configuration for services in *this* file

0 commit comments

Comments
 (0)