diff options
author | drebs <drebs@leap.se> | 2017-01-18 17:28:01 -0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-02-09 17:41:49 +0100 |
commit | ce0aed6d832f2f49c9306c8ccb6dd128cca1c511 (patch) | |
tree | 9f0a97f93a6eb55663fe637e707e423930174b58 /server/src/leap | |
parent | e05e9566c55e20833a2c45fe2ca67e60df009aac (diff) |
[feature] add server config option for blobs
Diffstat (limited to 'server/src/leap')
-rw-r--r-- | server/src/leap/soledad/server/_resource.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/leap/soledad/server/_resource.py b/server/src/leap/soledad/server/_resource.py index 4f8e98df..3e307e44 100644 --- a/server/src/leap/soledad/server/_resource.py +++ b/server/src/leap/soledad/server/_resource.py @@ -21,6 +21,7 @@ from twisted.web.error import Error from twisted.web.resource import Resource from ._blobs import blobs_resource +from ._config import get_config from ._wsgi import get_sync_resource @@ -33,8 +34,11 @@ class SoledadResource(Resource): for the Soledad Server. """ + _conf = get_config() + def __init__(self, sync_pool=None): sync_resource = get_sync_resource(sync_pool) + self._blobs_enabled = self._conf['soledad-server']['blobs'] self.children = { 'sync': sync_resource, 'blobs': blobs_resource, |