feat: add support for setting underscores-in-headers for nginx, openresty, and k3s

Closes #6627
This commit is contained in:
Jose Diaz-Gonzalez
2024-02-27 11:23:23 -05:00
parent c2bc469d53
commit b99c25f090
13 changed files with 77 additions and 4 deletions

View File

@@ -581,6 +581,15 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin
annotation: "nginx.ingress.kubernetes.io/proxy-read-timeout",
getter: nginxvhosts.ComputedProxyReadTimeout,
},
"underscore-in-headers": {
getter: nginxvhosts.ComputedUnderscoreInHeaders,
locationSnippet: func(value string) string {
if value == "" {
return ""
}
return fmt.Sprintf("underscores_in_headers %s;", value)
},
},
"x-forwarded-for-value": {
getter: nginxvhosts.ComputedXForwardedForValue,
locationSnippet: func(value string) string {