Skip to content

Allow Nexus to listen on a second address - #11208

Merged
bnaecker merged 4 commits into
mainfrom
ben/multiple-nexus-addresses
Sep 2, 2026
Merged

Allow Nexus to listen on a second address#11208
bnaecker merged 4 commits into
mainfrom
ben/multiple-nexus-addresses

Conversation

@bnaecker

@bnaecker bnaecker commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

- Add a second socket address to Nexus's config format. This is
  optional, for backwards compatibility. If specified, start a second
  external API server on the second address, sharing the rest of the
  Dropshot configuration and API context.
- Fixes #11006
Comment thread nexus-config/src/nexus_config.rs Outdated
- Use a vec of any additional addresses
- Store all external servers in a vec
@bnaecker
bnaecker requested a review from jgallagher September 2, 2026 19:22

@jgallagher jgallagher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few nits.

Comment thread nexus/examples/config.toml Outdated
Comment thread nexus/src/app/mod.rs Outdated
Comment thread nexus/src/lib.rs Outdated
@bnaecker
bnaecker enabled auto-merge (squash) September 2, 2026 20:24
@bnaecker
bnaecker merged commit 190f9aa into main Sep 2, 2026
19 checks passed
@bnaecker
bnaecker deleted the ben/multiple-nexus-addresses branch September 2, 2026 21:11

@davepacheco davepacheco left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this is late, and this isn't a big deal.

Comment on lines +181 to +182
#[schemars(skip)]
#[serde(default)]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to comment here that I think this shouldn't be necessary for backwards compatibility and I thought we generally avoid carrying this baggage (instead opting to update all the in-repo copies of the file, which is all that should matter). But taking a closer look, I think we have done this in a lot of places, for better or worse.

Comment thread nexus/src/app/mod.rs
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.

Nexus needs to support listening on multiple external addresses

3 participants