Describe the bug
When deployed, the server URL is right, except for the scheme: it is using HTTP instead of HTTPS, hence resulting in "Fail to fetch" errors.
To Reproduce
Expected behavior
Screenshots
As we can see, the root URL is https://bbdata.daplab.ch, but the generated server URL is http://....

Additional context
I am using version 1.4.1.
Here is the relevant part of my application.properties:
##聽Documentation
# Paths: UI at /docs/api, yaml at /docs/api/bbdata{.yaml}
springdoc.swagger-ui.path=/docs/api
springdoc.api-docs.path=/docs/api/bbdata
# do not expand tags
springdoc.swagger-ui.doc-expansion=none
# sort tags alphabetically
springdoc.swagger-ui.tags-sorter=alpha
springdoc.swagger-ui.operations-sorter=alpha
# show actuator endpoints
springdoc.show-actuator=true
I was able to make it work be specifying the server url as / in the configuration:
@OpenAPIDefinition(
servers = arrayOf(Server(url = "/"))
)
@SpringBootApplication
class App{
// ...
}
I was able to make it work be specifying the server url as
/in the configuration:@OpenAPIDefinition( servers = arrayOf(Server(url = "/")) ) @SpringBootApplication class App{ // ... }
You'd just saved my whole career!
Most helpful comment
I was able to make it work be specifying the server url as
/in the configuration: