python - Django REST Swagger HTTPS requests -
how configure django-rest-swagger https requests?
upd: ssl cert present , app working it, swagger make http requests.
add setting in settings.py
,
secure_proxy_ssl_header = ('http_x_forwarded_proto', 'https')
for more details, refer documentation..
also, may need make sure server forwarding x_forwarded_proto
, on nginx add location within server config:
proxy_set_header x-forwarded-protocol $scheme;
Comments
Post a Comment