Skip to content

Commit

Permalink
Merge pull request #664 from systemli/fix/set_trusted_proxies
Browse files Browse the repository at this point in the history
fix(framework): Support trusted proxies for userli behind reverse proxy
  • Loading branch information
doobry-systemli authored Nov 30, 2024
2 parents 4ae0bb4 + af46bde commit 44dc10f
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ WKD_FORMAT="advanced"
###> symfony/framework-bundle ###
APP_ENV="dev"
APP_SECRET="165e25e3846534bb4665d7078a851c0b"
TRUSTED_PROXIES=""
###< symfony/framework-bundle ###

###> symfony/mailer ###
Expand Down
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/db_test.sqlite
APP_DOMAIN=example.org
APP_ENV=test
APP_SECRET=165e25e3846534bb4665d7078a851c0b
TRUSTED_PROXIES=""
APP_NAME="Userli"
APP_URL="https://users.example.org"
PROJECT_NAME="example.org"
Expand Down
1 change: 1 addition & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ framework:
annotations: false
http_method_override: false
handle_all_throwables: true
trusted_proxies: '%env(TRUSTED_PROXIES)%'

# 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.
Expand Down

0 comments on commit 44dc10f

Please sign in to comment.