Skip to content

Conversation

@jameshadfield
Copy link
Member

Running with auspice view --handlers cli/dev/reverse-proxy.js will proxy all requests to localhost:5000 by default, allowing you to run a local nextstrain.org server and test against a new Auspice client. Specifying the env variable PROXY="https://nextstrain.org" easily allows you to use the live nextstrain.org host as the charon API, allowing easy testing of nextstrain.org functionality such as groups, community etc.

This essentially closes
#2033. There's one (niche!) use-case where you may want to source narratives locally (i.e. default Auspice server behaviour) but their datasets through a proxy. If I ever need to reach for that particular behaviour I'll revisit this.

@nextstrain-bot nextstrain-bot temporarily deployed to auspice-james-reverse-p-ixbf6j January 20, 2026 02:26 Inactive
Running with `auspice view --handlers cli/dev/reverse-proxy.js` will
proxy all requests to localhost:5000 by default, allowing you to run a
local nextstrain.org server and test against a new Auspice client.
Specifying the env variable `PROXY="https://nextstrain.org"` easily
allows you to use the live nextstrain.org host as the charon API,
allowing easy testing of nextstrain.org functionality such as groups,
community etc.

This essentially closes
#2033. There's one (niche!)
use-case where you may want to source narratives locally (i.e. default
Auspice server behaviour) but their datasets through a proxy. If I ever
need to reach for that particular behaviour I'll revisit this.
The behaviour of this code is now available via custom server (API)
handlers introduced in the previous commit.
@jameshadfield jameshadfield temporarily deployed to auspice-james-reverse-p-ixbf6j January 21, 2026 01:34 Inactive
@jameshadfield jameshadfield merged commit 3f9d1f8 into master Jan 21, 2026
16 checks passed
@jameshadfield jameshadfield deleted the james/reverse-proxy branch January 21, 2026 01:58
@victorlin
Copy link
Member

Tested locally, works great!

Small low-priority suggestion, feel free to take or leave: ce0e70b

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.

4 participants