It worked. Thank you. But what does django do with this variable? I mean 
how it reads it?
четверг, 28 января 2021 г. в 15:51:27 UTC+5, shaharya...@gmail.com: 

> Add 
> SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
>
> In setting file
>
> shaharyar shamshi
> software developer
>
> On Thu, Jan 28, 2021, 15:47 Ruslan Shamsutdinov <tankru...@gmail.com> 
> wrote:
>
>> I created an API, deployed it on the server on 8443 port and setup 
>> cloudflare's SSL certificates. Everything works perfectly, but I got a 
>> problem that urls in api-root still have http scheme. Also I set 
>> X-Forwarded-Proto $scheme header in nginx.conf. What could be the problem? 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-rest-fram...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-rest-framework/68921419-b1d4-4e8c-a3c8-379acef2f624n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-rest-framework/68921419-b1d4-4e8c-a3c8-379acef2f624n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/f9da7d4d-5606-46d1-b060-d91573f5c8dbn%40googlegroups.com.

Reply via email to