Because of elastic load balancer application url is always "http". One has to look for 'X-Forwarded-Proto' to determine the scheme. See: https://github.com/geoadmin/mf-chsdi3/blob/master/chsdi/subscribers.py#L24