summaryrefslogtreecommitdiffstats
path: root/windriver
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-14 12:21:18 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-14 12:21:18 +0800
commit428c35e6c074be56bd22dc42ba9c4e828564f674 (patch)
tree4c3733839e2a91cb9f02d247b0728f53c74208b7 /windriver
parent2f9345dc9ee45dfaeabcd38a8e9fd1414217f37a (diff)
Remove vulnerability of windriver plugin
Change-Id: I3928d5216f7f1efb58dfb4939b7fa700bb7f0df0 Issue-ID: MULTICLOUD-183 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver')
-rw-r--r--windriver/titanium_cloud/settings.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/windriver/titanium_cloud/settings.py b/windriver/titanium_cloud/settings.py
index 31900687..81e19fb2 100644
--- a/windriver/titanium_cloud/settings.py
+++ b/windriver/titanium_cloud/settings.py
@@ -65,8 +65,6 @@ REST_FRAMEWORK = {
'DEFAULT_PARSER_CLASSES': (
'rest_framework.parsers.JSONParser',
'rest_framework.parsers.MultiPartParser',
- # 'rest_framework.parsers.FormParser',
- # 'rest_framework.parsers.FileUploadParser',
)
}
@@ -117,15 +115,18 @@ LOGGING = {
}
}
+DEFAULT_MSB_ADDR = "127.0.0.1"
+DEFAULT_CACHE_BACKEND_LOCATION = '127.0.0.1:11211'
+
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- 'LOCATION': '127.0.0.1:11211',
+ 'LOCATION': DEFAULT_CACHE_BACKEND_LOCATION,
}
}
# [MSB]
-MSB_SERVICE_ADDR = os.environ.get('MSB_ADDR', "127.0.0.1")
+MSB_SERVICE_ADDR = os.environ.get('MSB_ADDR', DEFAULT_MSB_ADDR)
MSB_SERVICE_PORT = os.environ.get('MSB_PORT', "80")
#[Multicloud]