Harshit Gupta
Harshit Gupta

Reputation: 126

springdoc-openapi-ui(Swagger UI) is appending :80 port to the base URL

I have a spring boot application running on the spring-boot-starter-parent:2.6.1 version and springdoc-openapi-ui:1.2.32. Swagger is working fine locally. The problem comes when I deploy the app inside Kubernetes cluster. That time spring doc open API is automatically redirecting to HTTP(:80) instead of HTTPS. If I remove :80 from the base URL then swagger-ui is coming up. Using the example given here I have changed the generated server URL, so my REST APIs are working fine now. But how to get rid of the :80 port getting appended in the base URL automatically? What is the issue here?

Upvotes: 0

Views: 1351

Answers (1)

Harshit Gupta
Harshit Gupta

Reputation: 126

Switching to the latest version of springdoc-openapi-ui:1.6.6 solved the problem.

Upvotes: 1

Related Questions