root / snf-webproject / synnefo / webproject / settings / default / deploy.py @ 8ae38ff8
History | View | Annotate | Download (1.4 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 |
# Settings / Cookies / Headers that should be 'cleansed'
|
21 |
HIDDEN_SETTINGS = 'SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE|AMQP_HOSTS|'\
|
22 |
'PRIVATE_KEY|DB_CONNECTION|TOKEN'
|
23 |
HIDDEN_COOKIES = ['password', '_pithos2_a', 'token', 'sessionid', 'shibstate', |
24 |
'shibsession', 'CSRF_COOKIE'] |
25 |
HIDDEN_HEADERS = ['HTTP_X_AUTH_TOKEN', 'HTTP_COOKIE'] |
26 |
# Mail size limit for unhandled exception
|
27 |
MAIL_MAX_LEN = 100 * 1024 # (100KB) |
28 |
|
29 |
#When set to True, if the request URL does not match any of the patterns in the
|
30 |
#URLconf and it doesn't end in a slash, an HTTP redirect is issued to the same
|
31 |
#URL with a slash appended. Note that the redirect may cause any data submitted
|
32 |
#in a POST request to be lost. Due to the REST nature of most of the registered
|
33 |
#Synnefo endpoints we prefer to disable this behaviour by default.
|
34 |
APPEND_SLASH = False
|