Discuss: Add a new setting for https schema

65 views
Skip to first unread message

wangwenpei

unread,
Aug 20, 2017, 1:03:08 PM8/20/17
to Django developers (Contributions to Django itself)
Dear all:

   I know we have settings.SECURE_PROXY_SSL_HEADER to control https header when we use load-balancer.

   but I found some small cloud platform doesn't support user set it. 

   so, should we add new config option to support this case, something like: 'SCHEMA_FORCE_HTTPS=True'?

   I am not sure this is a feature. because it is cloud platform problem, not Django.

   if community think  can add into django. I think I can finish it.

 




Florian Apolloner

unread,
Aug 20, 2017, 2:19:49 PM8/20/17
to Django developers (Contributions to Django itself)
I think in those cases a small middleware would be prefered opposed to a new setting (and therefore nothing which needs to be in core). That said: how is the "cloud" telling you if the request is https or not?

Cheers,
Florian
Reply all
Reply to author
Forward
0 new messages