Skip to content

Commit 2456e31

Browse files
committed
bug #1550 Set trusted proxies for running in Codespace (GromNaN)
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
2 parents 3277fc2 + d09b66a commit 2456e31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.devcontainer/devcontainer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"features": {
44
"ghcr.io/shyim/devcontainers-features/symfony-cli:0": {},
55
"ghcr.io/shyim/devcontainers-features/php:0": {
6-
"version": "8.2"
6+
"version": "8.4"
77
}
88
},
99
"updateContentCommand": {
@@ -12,5 +12,9 @@
1212
"postAttachCommand": {
1313
"server": "symfony server:start",
1414
"sass build": ["symfony", "console", "sass:build", "-w"]
15+
},
16+
"containerEnv": {
17+
"SYMFONY_TRUSTED_PROXIES": "127.0.0.1",
18+
"SYMFONY_TRUSTED_HEADERS": "x-forwarded-for,x-forwarded-host,x-forwarded-proto,x-forwarded-port"
1519
}
1620
}

0 commit comments

Comments
 (0)