https context

This commit is contained in:
j 2013-02-09 19:35:11 +00:00
parent f3c16c4a58
commit 5728a96f74
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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'))