forked from 0x2620/pandora
https context
This commit is contained in:
parent
f3c16c4a58
commit
5728a96f74
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,7 @@ server {
|
|||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto http;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
proxy_read_timeout 90; #should be in sync with gunicorn timeout
|
||||
|
|
|
@ -39,6 +39,11 @@ SITE_ID = 1
|
|||
USE_I18N = True
|
||||
APPEND_SLASH = False
|
||||
|
||||
# Uncomment this if you add https support.
|
||||
# Also make sue to send https from your https vhost:
|
||||
# proxy_set_header X-Forwarded-Proto https;
|
||||
#SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
# Absolute path to the directory that holds media.
|
||||
# Example: "/home/media/media.lawrence.com/"
|
||||
MEDIA_ROOT = normpath(join(PROJECT_ROOT, '..', 'data'))
|
||||
|
|
Loading…
Reference in a new issue