SpringDoc/Swagger behind an nginx proxy
问题 We are running a service behind an nginx proxy so that: http://service-post:8080/swagger-ui.html is routed to public address https://host.com/services/post/swagger-ui.html Or to define from the other way: When nginx receives request on https://host.com/services/post/swagger-ui.html , it strips the /services/post/ prefix and passes the request to the post service on /swagger-ui.html path. Before setting up anything (with default SpringDoc configuration) I can correctly see the swagger docs on