Skip to content

[feature] Multiple upstreams #2760

@ki9us

Description

@ki9us

I set up proxies like this:

Image

What I think NPMplus does, is create a config like this:

server {
  server_name www.example.com;
  # other settings...
  location / {
    # other settings...
    proxy_pass http://myhost:8080;
  }
}

I want NPMplus to do this instead:

upstream www-example-com {
  server myhost:8080;
}
server {
  server_name www.example.com;
  # other settings...
  location / {
    # other settings...
    proxy_pass http://www-example-com;
  }
}

That way I can create multiple upstreams for round-robin:

Image

And NPMplus would add them to the config like this:

upstream www-example-com {
  server myhost:8080;
  server myhost:8888;
}
server {
  server_name www.example.com;
  # other settings...
  location / {
    # other settings...
    proxy_pass http://www-example-com;
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions