Statistics
| Branch: | Tag: | Revision:

root / snf-webproject / synnefo / webproject / settings / default / deploy.py @ 0fa71fcc

History | View | Annotate | Download (1.6 kB)

1
# Deployment settings
2
##################################
3

    
4
DEBUG = False
5
TEMPLATE_DEBUG = False
6

    
7
# Use secure cookie for django sessions cookie, change this if you don't plan
8
# to deploy applications using https
9
SESSION_COOKIE_SECURE = True
10

    
11
# You should always change this setting.
12
# Make this unique, and don't share it with anybody.
13
SECRET_KEY = 'ly6)mw6a7x%n)-e#zzk4jo6f2=uqu!1o%)2-(7lo+f9yd^k^bg'
14

    
15
# A boolean that specifies whether to use the X-Forwarded-Host header in
16
# preference to the Host header. This should only be enabled if a proxy which
17
# sets this header is in use.
18
USE_X_FORWARDED_HOST = True
19

    
20
# Custom exception filter to 'cleanse' setting variables
21
DEFAULT_EXCEPTION_REPORTER_FILTER = "synnefo.webproject.exception_filter.SynnefoExceptionReporterFilter"
22
# Settings / Cookies / Headers that should be 'cleansed'
23
HIDDEN_SETTINGS = 'SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE|AMQP_HOSTS|'\
24
                  'PRIVATE_KEY|DB_CONNECTION|TOKEN'
25
HIDDEN_COOKIES = ['password', '_pithos2_a', 'token', 'sessionid', 'shibstate',
26
                  'shibsession', 'CSRF_COOKIE']
27
HIDDEN_HEADERS = ['HTTP_X_AUTH_TOKEN', 'HTTP_COOKIE']
28
# Mail size limit for unhandled exception
29
MAIL_MAX_LEN = 100 * 1024  # (100KB)
30

    
31
#When set to True, if the request URL does not match any of the patterns in the
32
#URLconf and it doesn't end in a slash, an HTTP redirect is issued to the same
33
#URL with a slash appended. Note that the redirect may cause any data submitted
34
#in a POST request to be lost. Due to the REST nature of most of the registered
35
#Synnefo endpoints we prefer to disable this behaviour by default.
36
APPEND_SLASH = False