Skip to content
Discussion options

You must be logged in to vote

A few days later found the answer to my own question.
It's all about the mandatory X-Forwarded-Proto header. This header must convey the current protocol. So the working variant of nginx-proxy looks as follows:

server {
    listen       443 ssl;
    server_name  my.domain.name;
    include      ssl.conf;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass  http://127.0.0.1:8088;
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by denisbondar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant