summaryrefslogtreecommitdiff
path: root/server/src/leap/soledad
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/leap/soledad')
-rw-r--r--server/src/leap/soledad/server/_blobs.py10
-rw-r--r--server/src/leap/soledad/server/_config.py1
2 files changed, 11 insertions, 0 deletions
diff --git a/server/src/leap/soledad/server/_blobs.py b/server/src/leap/soledad/server/_blobs.py
index 0424aae0..ae09f409 100644
--- a/server/src/leap/soledad/server/_blobs.py
+++ b/server/src/leap/soledad/server/_blobs.py
@@ -19,14 +19,24 @@ Blobs Server implementation.
"""
from twisted.web import resource
+from ._config import get_config
+
__all__ = ['blobs_resource']
+_config = get_config()
+DEFAULT_BLOBS_PATH = _config['blobs_path']
+
+
class BlobsResource(resource.Resource):
isLeaf = True
+ def __init__(self, blobs_path=DEFAULT_BLOBS_PATH):
+ resource.Resource.__init__(self)
+ self._blobs_path = blobs_path
+
def render_GET(self, request):
return 'blobs is not implemented yet!'
diff --git a/server/src/leap/soledad/server/_config.py b/server/src/leap/soledad/server/_config.py
index 1818c38d..e89e70d6 100644
--- a/server/src/leap/soledad/server/_config.py
+++ b/server/src/leap/soledad/server/_config.py
@@ -29,6 +29,7 @@ CONFIG_DEFAULTS = {
'admin_netrc': '/etc/couchdb/couchdb-admin.netrc',
'batching': True,
'blobs': False,
+ 'blobs_path': '/srv/leap/soledad/blobs',
},
'database-security': {
'members': ['soledad'],