Skip to content

Commit 8533e28

Browse files
committed
Move simplified trusted proxies configuration to standalone image build
1 parent 9e2410a commit 8533e28

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.env.dirigent

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
1616

1717
GITHUB_TOKEN=
18-
TRUSTED_PROXIES=
1918

2019
###> symfony/framework-bundle ###
2120
APP_ENV=dev

config/packages/framework.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
framework:
33
secret: '%env(APP_SECRET)%'
44

5-
trusted_proxies: '%env(TRUSTED_PROXIES)%'
6-
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']
7-
85
# Note that the session will be started ONLY if you read or write from it.
96
session: true
107

docker/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ parameters:
44

55
framework:
66
secret: '%kernel_secret%'
7+
8+
trusted_proxies: '%env(TRUSTED_PROXIES)%'
9+
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-port', 'x-forwarded-prefix', 'x-forwarded-proto']

0 commit comments

Comments
 (0)