-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use nginx gateway fabric in front of docker registry service (need to set client_max_body_size) #1245
Comments
Hi @larsks, thanks for opening this issue. We are currently adding support for configuring some nginx options via a CRD, and will add this field to that CRD to make it easy to configure. |
Hey @larsks, after discussing this among the maintainers today, we realized we need a much better way to expose native NGINX configuration, as the more we expose the messier it starts to get. Looking at the Gateway API spec, the best way we think is by implementing some new policies to attach to the various Gateway API objects so we apply NGINX directive to any scope (GatewayClass, Gateway, Route) wherever possible. We believe this will be a MUCH better experience, but since it will be significantly more effort, we'll likely have a first pass at this in 1.2 instead of 1.1. You can see the epic here: #1258 |
Thanks for the update! It looks like the policy attachment model is (still) experimental right now. What about an additional option that takes advantage of the |
I was hoping I could work around this by mounting a custom config file into /etc/nginx/conf.d, but you're killin' me 😄 |
@larsks The We also want to investigate a more generalized (but secure) way for users to update more advanced nginx directives that may not make sense in a Policy, or haven't yet been added to a Policy. That is still in early stages though. In the meantime, one workaround is to alter the base nginx config to fit your needs, and then build a custom nginx image that you can deploy instead of our release image. |
It's relatively easy to patch Assuming that our modified
|
This functionality will now be delivered as part of our ClientSettings Policy! Closing this issue to avoid duplication. |
Describe the bug
We are trying to use the nginx gateway fabric to expose a container registry running the docker registry image. While the basic configuration works fine, pushing images into the registry generally fails with:
The solution is to increase
client_max_body_size
; but I've been unable to find any documentation that describes how to set custom nginx configuration options via the gateway api.Expected behavior
I expected to be able to use nginx gateway fabric to expose an internal registry service.
Your environment
nginxconf.txt
The text was updated successfully, but these errors were encountered: