Forum Discussion

md022012's avatar
md022012
Regular Visitor
5 years ago

Spring Boot, OpenAPI3, and AWS with HTTPS - generated server URLs aren't pulling in HTTPS protocol

Hi all,

I updated a Spring Boot project from using Swagger 2 to OpenAPI. Against localhost the swagger-ui.html works fine - outside of localhost, the application is deployed into AWS in ECS and is accessed through https. For some reason that I can't seem to identify, the generated server URL in swagger-ui.html is using the http protocol instead of https. I've been searching all morning trying to figure out of there is a setting in Spring Boot or in springdoc that will have it use the protocol that is accessing the application and haven't found anything solid. If I need some extra configuration, that's completely fine - I'm just kind of baffled as to why Swagger 2 didn't have this problem but OpenAPI does.

 

Has anyone else run into this problem? If so, do you have suggestions on how I can go about repairing it so that both localhost (http) and AWS (https) will work?

 

Thanks very much for your time.

Michael

No RepliesBe the first to reply