Skip to content

serve command - Separate URL prefix from bind address #870

@burleight

Description

@burleight

This is a feature request.

Currently, the --addr flag is used by axum as the bind address and by the API as the prefix when generating link URLs.

For context, I'm attempting to use rustac serve in a container behind a reverse proxy, but the API was returning JSON with links starting with http://0.0.0.0:7822/

I'd like the have the API generate links for external an URL and support using HTTPS.

I've created a fork which is good enough for my use case, where usage now looks like this:

rustac serve --bind 0.0.0.0:7822 --addr https://some-host.io

burleight@7447b8d

Hopefully this is a good starting point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions