Skip to content

Commit

Permalink
Merge pull request #79 from shopware/add-trusted-proxies
Browse files Browse the repository at this point in the history
Make trusted proxies configurable by env TRUSTED_PROXIES
  • Loading branch information
pweyck authored Jan 24, 2024
2 parents 3d0fd8f + 1d9adca commit 7379a1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
parameters:
env(JWT_PRIVATE_KEY): ""
env(JWT_PUBLIC_KEY): ""

shopware:
api:
jwt_key:
Expand Down
5 changes: 5 additions & 0 deletions shopware/docker/0.1/config/packages/trusted_env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
env(TRUSTED_PROXIES): ''

framework:
trusted_proxies: '%env(TRUSTED_PROXIES)%'
4 changes: 0 additions & 4 deletions shopware/docker/0.1/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
"copy-from-recipe": {
"docker/": "docker/",
"config/": "%CONFIG_DIR%/"
},
"container": {
"env(JWT_PRIVATE_KEY)": "",
"env(JWT_PUBLIC_KEY)": ""
}
}

0 comments on commit 7379a1d

Please sign in to comment.