Skip to content

Commit d09b66a

Browse files
committed
Set trusted proxies for running in Codespace
1 parent 3277fc2 commit d09b66a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: .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)