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.