asyncapi / saunter

Saunter is a code-first AsyncAPI documentation generator for dotnet.
https://www.asyncapi.com/
MIT License
204 stars 57 forks source link

Support hosting UI behind reverse proxy #126

Closed m-wild closed 2 years ago

m-wild commented 2 years ago

If hosting behind a reverse proxy (e.g. nginx), when the UI requests the asyncapi.json it will use the incorrect route.

The UI example.net/service-a/asyncapi/ui/index.html will request the async api doc from example.net/asyncapi/asyncapi.json. It needs to request it from example.net/service-a/asyncapi/asyncapi.json.

m-wild commented 2 years ago

This is live in v0.9.1 https://www.nuget.org/packages/Saunter/0.9.1