Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The swagger not working when hosting gateway in a virtual directory on IIS #1281

Closed
jigneshnarain opened this issue Jul 3, 2020 · 1 comment

Comments

@jigneshnarain
Copy link

The swagger endpoint does not update to the virtual hosted gateway. The endpoint remain "/swagger/docs". When clicking on the it open a link to the service swagger without the virtual host name.

Expected /gateway/swagger/docs/v1/servicename
Actual /swagger/docs/v1/servicename

However, when I manually navigate to the path /gateway/swagger/docs/v1/servicename, the json renders as expected.

Additionally, I tried the following but no luck.
app.UseSwaggerForOcelotUI(opt => {
opts.ServerOcelot = "/siteName/gateway" ;
})

How do I get swagger to work when hosting the gateway in a virtual directory.

@raman-m
Copy link
Member

raman-m commented Mar 27, 2024

We don't support Swagger officially❗

But we believe it will be supported in future, see

We don't recommend to deploy to IIS ❕

@raman-m raman-m closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2024
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

No branches or pull requests

2 participants