Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
763b14ab
Commit
763b14ab
authored
Jun 13, 2013
by
Kostas Papadimitriou
Browse files
webproject: Disable APPEND_SLASH setting by default
parent
e430a910
Changes
4
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/conf/20-snf-cyclades-app-api.conf
View file @
763b14ab
...
...
@@ -60,9 +60,6 @@
## The default firewall profile that will be in effect if no tags are defined
#DEFAULT_FIREWALL_PROFILE = 'DISABLED'
#
## our REST API would prefer to be explicit about trailing slashes
#APPEND_SLASH = False
#
## Fixed mapping of user VMs to a specific backend.
## e.g. BACKEND_PER_USER = {'example@synnefo.org': 2}
#BACKEND_PER_USER = {}
...
...
snf-cyclades-app/synnefo/app_settings/default/api.py
View file @
763b14ab
...
...
@@ -56,9 +56,6 @@ GANETI_FIREWALL_PROTECTED_TAG = 'synnefo:network:0:limited'
# The default firewall profile that will be in effect if no tags are defined
DEFAULT_FIREWALL_PROFILE
=
'DISABLED'
# our REST API would prefer to be explicit about trailing slashes
APPEND_SLASH
=
False
# Fixed mapping of user VMs to a specific backend.
# e.g. BACKEND_PER_USER = {'example@synnefo.org': 2}
BACKEND_PER_USER
=
{}
...
...
@@ -108,7 +105,7 @@ SECRET_ENCRYPTION_KEY = "Password Encryption Key"
# Astakos service token
# The token used for astakos service api calls (e.g. api to retrieve user email
# using a user uuid)
CYCLADES_SERVICE_TOKEN
=
''
CYCLADES_SERVICE_TOKEN
=
''
# Let cyclades proxy user specific api calls to astakos, via self served
# endpoints. Set this to False if you deploy cyclades-app/astakos-app on the
...
...
snf-webproject/conf/10-snf-webproject-deploy.conf
View file @
763b14ab
...
...
@@ -24,3 +24,10 @@
## Set the url you want to redirect users to when they access the root path of
## your site.
#WEBPROJECT_ROOT_REDIRECT = None
#
##When set to True, if the request URL does not match any of the patterns in the
##URLconf and it doesn't end in a slash, an HTTP redirect is issued to the same
##URL with a slash appended. Note that the redirect may cause any data submitted
##in a POST request to be lost. Due to the REST nature of most of the registered
##Synnefo endpoints we prefer to disable this behaviour by default.
#APPEND_SLASH = False
snf-webproject/synnefo/webproject/settings/default/deploy.py
View file @
763b14ab
...
...
@@ -20,3 +20,11 @@ USE_X_FORWARDED_HOST = True
# Settings / cookies that should be 'cleansed'
HIDDEN_SETTINGS
=
'SECRET|PASSWORD|PROFANITIES_LIST|SIGNATURE|AMQP_HOSTS|PRIVATE_KEY|DB_CONNECTION'
HIDDEN_COOKIES
=
'password|_pithos2_a|token|sessionid|shibstate|shibsession|CSRF_COOKIE'
#When set to True, if the request URL does not match any of the patterns in the
#URLconf and it doesn't end in a slash, an HTTP redirect is issued to the same
#URL with a slash appended. Note that the redirect may cause any data submitted
#in a POST request to be lost. Due to the REST nature of most of the registered
#Synnefo endpoints we prefer to disable this behaviour by default.
APPEND_SLASH
=
False
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment