-
Notifications
You must be signed in to change notification settings - Fork 534
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
Cannot add TCP Proxy configuration via "drop-in" config files #257
Comments
I'm really sorry I didn't pick this up months ago. Thank you for preparing the report. I just looked into the
|
Adds `include /etc/nginx/conf.d/*.conf;` to `nginx.conf` for injecting config into main stanza. **NOTE:** This may be a **breaking change** for those bind-mounting existing files named `*.main`.
Life happens. It's understandable.
Yeah, and that include is inside the
My workaround so far has been to add Thanks for taking a look at the issue! |
Great, this was added in I just re-discovered that this was reported long ago #171 and I didn't address it then -- sorry to all who needed this and glad I got it done now. |
Issue
On current Linux-based Docker images, it's straightforward to add a file to
/etc/nginx/conf.d
and have it processed by nginx because of theinclude /etc/nginx/conf.d/*.conf;
entry in thehttp { ... }
block of thenginx.conf
file. But this can't be done with TCP Proxy configuration. Doing so generates the following error:I can work around the issue by making a copy of
nginx.conf
and adding aninclude /path/to/alternate/conf.d/*.conf;
directive outside thehttp { ... }
block and doing a bind mount at runtime for the containers, but that leaves open the possibility of upstream config changes in the container will be missed because of my local changes.Configurations tested
I tested with the 1.2.6 containers for
jammy
androcky
and both generated an error when the following contents were in/etc/nginx/conf.d/rabbitmq.conf
The text was updated successfully, but these errors were encountered: