Skip to content

Commit

Permalink
fix(framework): Support trusted proxies for userli behind reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
doobry-systemli authored and 0x46616c6b committed Nov 30, 2024
1 parent 4ae0bb4 commit af46bde
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 af46bde

Please sign in to comment.