Skip to content

Commit

Permalink
bug #1550 Set trusted proxies for running in Codespace (GromNaN)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the main branch.

Discussion
----------

Set trusted proxies for running in Codespace

Part of #1542

GitHub Codespaces runs the application behind a proxy. In order to get correctly generated URLs, proxy headers must be allowed.

Also update to PHP 8.4

Commits
-------

d09b66a Set trusted proxies for running in Codespace
  • Loading branch information
GromNaN committed Dec 19, 2024
2 parents 3277fc2 + d09b66a commit 2456e31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"features": {
"ghcr.io/shyim/devcontainers-features/symfony-cli:0": {},
"ghcr.io/shyim/devcontainers-features/php:0": {
"version": "8.2"
"version": "8.4"
}
},
"updateContentCommand": {
Expand All @@ -12,5 +12,9 @@
"postAttachCommand": {
"server": "symfony server:start",
"sass build": ["symfony", "console", "sass:build", "-w"]
},
"containerEnv": {
"SYMFONY_TRUSTED_PROXIES": "127.0.0.1",
"SYMFONY_TRUSTED_HEADERS": "x-forwarded-for,x-forwarded-host,x-forwarded-proto,x-forwarded-port"
}
}

0 comments on commit 2456e31

Please sign in to comment.