Skip to content

Generated server url is HTTP #726

@derlin

Description

@derlin

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

  • deploy the app on localhsot
  • use nginx to make it available under https
  • open swagger ui

Expected behavior

  • the generated server URL should match the root of the documentation

Screenshots

As we can see, the root URL is https://bbdata.daplab.ch, but the generated server URL is http://....

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions