Skip to content
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

fix: Generate at most one server directive per container #2153

Merged
merged 6 commits into from Jan 30, 2023

Conversation

rhansen
Copy link
Collaborator

@rhansen rhansen commented Jan 28, 2023

Multiple commits: several cleanups and a fix for a minor bug.

@rhansen rhansen requested a review from buchdag January 28, 2023 07:21
to ensure that the version is always the first output line.

Also, always output `# nginx-proxy`, even if the version isn't known.
This makes it easier to find the start of the generated config in the
output of `nginx -T`.
Exposing ports is largely deprecated because it doesn't actually do
anything in Docker.
In particular, reduce the nesting depth to make it easier to
understand what the code is doing by:

  * converting an $O(nm)$ nested loop into two serial $O(n)+O(m)$
    loops, and
  * consolidating similar nested `if` cases.
@buchdag
Copy link
Member

buchdag commented Jan 30, 2023

Very nice work 👍

@buchdag buchdag merged commit 926bd43 into nginx-proxy:main Jan 30, 2023
@rhansen rhansen deleted the upstream-cleanup branch January 31, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants