Skip to content

Commit

Permalink
Fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gardener committed Dec 8, 2023
1 parent fa283db commit 1ff8208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ DATABASE_URL=mysql://newn:password@db:3306/newn?serverVersion=mariadb-10.11.0
ROUTE_PROTOCOL=http
ROUTE_HOST=localhost
ROUTE_BASE=
TRUSTED_PROXIES=127.0.0.1

# Comments etc.
# Use something like this in .env.local FEEDBACK_RECIPIENTS='["a@example.com", "b@example.com"]'
Expand Down
3 changes: 3 additions & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ framework:
csrf_protection: true
http_method_override: true

trusted_proxies: '%env(TRUSTED_PROXIES)%'
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']

# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
Expand Down

0 comments on commit 1ff8208

Please sign in to comment.