mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
fix: drop x-forwarded- properties from k3s scheduler
These shadow existing values managed by k3s itself, causing issues where the same header is injected with multiple values, which some frameworks do not support as they use the header directly without parsing to construct urls.
This commit is contained in:
@@ -995,33 +995,6 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin
|
||||
return fmt.Sprintf("underscores_in_headers %s;", value)
|
||||
},
|
||||
},
|
||||
"x-forwarded-for-value": {
|
||||
getter: nginxvhosts.ComputedXForwardedForValue,
|
||||
locationSnippet: func(value string) string {
|
||||
if value == "" {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("proxy_set_header X-Forwarded-For %s;", value)
|
||||
},
|
||||
},
|
||||
"x-forwarded-port-value": {
|
||||
getter: nginxvhosts.ComputedXForwardedPortValue,
|
||||
locationSnippet: func(value string) string {
|
||||
if value == "" {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("proxy_set_header X-Forwarded-Port %s;", value)
|
||||
},
|
||||
},
|
||||
"x-forwarded-proto-value": {
|
||||
getter: nginxvhosts.ComputedXForwardedProtoValue,
|
||||
locationSnippet: func(value string) string {
|
||||
if value == "" {
|
||||
return ""
|
||||
}
|
||||
return fmt.Sprintf("proxy_set_header X-Forwarded-Proto %s;", value)
|
||||
},
|
||||
},
|
||||
"x-forwarded-ssl": {
|
||||
getter: nginxvhosts.ComputedXForwardedSSL,
|
||||
locationSnippet: func(value string) string {
|
||||
|
||||
Reference in New Issue
Block a user