You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm setting up the nginx ingress controller, and was wanting to set the underscores_in_headers option that is available for nginx. As of right now, there's no way to do that other than by setting a custom template, for which the docs are a bit lean (recognizing of course that this repo is still in a state of flux).
It would be nice to simply have underscores_in_headers as an option in the configmap as seen here. In an ideal world, it would be awesome to have a generic handler for all nginx settings, but that might be a bit ambitious.
One of my motivations for using the nginx ingress controller was to avoid having to have kubernetes configs and a separate nginx config.
That being said, I can see how the custom template is useful because it allows for more generic options to be set. I'm not 100% certain how it works because I don't see the nginx.tmpl in the example. I imagine how it works (guessing here) is that I would simply copy the nginx.tmpl, modify it, then create a Dockerfile copying that over to the correct location in the nginx-ingress-controller container. It would be amazing to have docs with a full example of how this might be set up if that is how it works, and if there is a simpler way, it would be great to see that fully fleshed out.
The text was updated successfully, but these errors were encountered:
@aledbf if we config underscores_in_headers on.
when mapping headers to CGI variables, as both dashes and underscores are mapped to underscores during that process. whether can cause some problems.
I'm setting up the nginx ingress controller, and was wanting to set the
underscores_in_headers
option that is available for nginx. As of right now, there's no way to do that other than by setting a custom template, for which the docs are a bit lean (recognizing of course that this repo is still in a state of flux).It would be nice to simply have
underscores_in_headers
as an option in the configmap as seen here. In an ideal world, it would be awesome to have a generic handler for all nginx settings, but that might be a bit ambitious.One of my motivations for using the nginx ingress controller was to avoid having to have kubernetes configs and a separate nginx config.
That being said, I can see how the custom template is useful because it allows for more generic options to be set. I'm not 100% certain how it works because I don't see the
nginx.tmpl
in the example. I imagine how it works (guessing here) is that I would simply copy thenginx.tmpl
, modify it, then create a Dockerfile copying that over to the correct location in the nginx-ingress-controller container. It would be amazing to have docs with a full example of how this might be set up if that is how it works, and if there is a simpler way, it would be great to see that fully fleshed out.The text was updated successfully, but these errors were encountered: