Set trusted proxies for running in Codespace

This commit is contained in:
Jérôme Tamarelle
2024-12-16 11:25:35 +01:00
parent 3277fc20c0
commit d09b66a25b

View File

@@ -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": {
@@ -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"
}
}