Skip to content

Commit

Permalink
Update installation.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmerrell authored and aleksihakli committed Dec 5, 2022
1 parent ad14e15 commit 2d8727b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@ context processor:
...
'django.template.context_processors.request',
)
WSGI + Nginx
#####

1. Add **SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')** to your settings.py
2. Add **proxy_set_header X-Forwarded-Proto $scheme;** to your Nginx site config file.

This will set request.is_secure() equal to true when it is checked by embed_video_tags.py, for more information reffer `here <https://github.com/jazzband/django-embed-video/issues/172#issuecomment-1335895642>`_.

0 comments on commit 2d8727b

Please sign in to comment.