• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue Add XFP header within Docker extension nginx proxy

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:
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)
 
Back
Top