Hello,

I'm using stud with haproxy 1.5 in front of a gunicorn/django webapp.

Django looks for X-Forwarded-Protocol=https ou X-Forwarded-Ssl=on
headers to know if the request is secure or not.

I guess it is the job of haproxy to set and forward these headers, but
i don't really know on which condition/acl i should set these headers?

Maybe using the source port of the request (443) as set by stud in the
PROXY protocol, but is it exposed in haproxy config?

thanx,
Sebastien Estienne

Reply via email to