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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -