Skip to content

SBA use nginx configured HTTPS proxy forward to HTTP error #1770

Closed
@MorganArthur

Description

@MorganArthur

image

image

I used nginx to proxy my SBA, and the configured HTTPS changed to HTTP when forwarding. I did not find a suitable configuration in the documentation to fix this problem.

Is there something wrong with my configuration?

version: 2.4.2

image
image

Activity

ulischulte

ulischulte commented on Jul 16, 2021

@ulischulte
Contributor
MorganArthur

MorganArthur commented on Jul 19, 2021

@MorganArthur
Author

@MorganArthur
请尝试设置server.forward-headers-strategyNATIVE
https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.webserver.use-behind-a-proxy-server)

I've tried. problem has been solved. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ulischulte@MorganArthur

        Issue actions

          SBA use nginx configured HTTPS proxy forward to HTTP error · Issue #1770 · codecentric/spring-boot-admin