wilei
New Pleskian
Hi!
Is it possible to add XFP / X-Forwarded-Proto HTTP-header when nginx is doing proxying to the Docker container?
Now configuration sets just X-Real-IP and X-Forwarded-For headers, but no X-Forwarded-Proto header, and therefore the standard HTTP/HTTPS detections are not working at all.
The XFP header could be added by just adding the following line to Docker extension config in every location with proxy_pass:
Or is there some template to edit and add the line in it?
(I'm using Plesk 17.8.11 on Ubuntu 16.04.5 with Docker extension version 1.3.1-126)
Is it possible to add XFP / X-Forwarded-Proto HTTP-header when nginx is doing proxying to the Docker container?
Now configuration sets just X-Real-IP and X-Forwarded-For headers, but no X-Forwarded-Proto header, and therefore the standard HTTP/HTTPS detections are not working at all.
The XFP header could be added by just adding the following line to Docker extension config in every location with proxy_pass:
Code:
proxy_set_header X-Forwarded-Proto $scheme;
Or is there some template to edit and add the line in it?
(I'm using Plesk 17.8.11 on Ubuntu 16.04.5 with Docker extension version 1.3.1-126)