Skip to content

Commit

Permalink
Set trusted proxies for running in Codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 19, 2024
1 parent 3277fc2 commit d09b66a
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 d09b66a

Please sign in to comment.