[Help] Problems with swagger-ui behind a reverse proxy. #39175
-
|
Hi, I have also tried mapping it to a different URL using: But that also didn't work. I simply get a 404 from the quarkus app. If I however do: And attempt to hit: http://example.com/app/docs - I am redirected to http://example.com/docs and then I get a 404 from the ingress nginx. I am using Quarkus 3.8.1 Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
|
/cc @MikeEdgar (swagger-ui), @phillip-kruger (swagger-ui) |
Beta Was this translation helpful? Give feedback.
-
|
Are you setting the context root to app ?
|
Beta Was this translation helpful? Give feedback.
So a few things to get this to work. Thanks @phillip-kruger - your answer clued me in on what is going on. What I found is if I hit the url:
example.com/app/docsthen I get a302and get redirected toexample.com/docs/- and that's where your comment clicked. The trailing/. If I hitexample.com/app/docs/- I get the swagger UI.I then had to follow up and fix the URLs for the API using
quarkus.smallrye-openapi.serversand setting it to%prod.quarkus.smallrye-openapi.servers=/appThanks once again @phillip-kruger & @cescoffier