Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion api/v1/store_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (s *Store) GetEnv() []corev1.EnvVar {
},
},
},
// When using https we need this for header trusting
// deprecated since 6.7
{
Name: "TRUSTED_PROXIES",
Value: "REMOTE_ADDR",
Expand All @@ -394,6 +394,10 @@ func (s *Store) GetEnv() []corev1.EnvVar {
Name: "SYMFONY_TRUSTED_PROXIES",
Value: "REMOTE_ADDR",
},
{
Name: "SYMFONY_TRUSTED_HEADERS",
Value: "['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should test this before (I could imagine that they are just comma seperated) and allow also allow overwriting it by the user

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't found any documentation about this tbh, so I will test this later with my branch. Also add the possibility to change this.

},
// Some Shopware best practises
{
Name: "SHOPWARE_DBAL_TIMEZONE_SUPPORT_ENABLED",
Expand Down