Revision fe4ad54f snf-pithos-app/pithos/api/settings.py
b/snf-pithos-app/pithos/api/settings.py | ||
---|---|---|
2 | 2 |
from django.conf import settings |
3 | 3 |
from synnefo.lib import parse_base_url |
4 | 4 |
from astakosclient import astakos_services |
5 |
from synnefo.lib.services import fill_endpoints |
|
5 | 6 |
from synnefo.util.keypath import get_path |
6 | 7 |
from pithos.api.services import pithos_services as vanilla_pithos_services |
7 | 8 |
|
... | ... | |
18 | 19 |
'https://accounts.example.synnefo.org/astakos/') |
19 | 20 |
ASTAKOS_BASE_HOST, ASTAKOS_BASE_PATH = parse_base_url(ASTAKOS_BASE_URL) |
20 | 21 |
|
22 |
pithos_services = deepcopy(vanilla_pithos_services) |
|
23 |
fill_endpoints(pithos_services, BASE_URL) |
|
21 | 24 |
PITHOS_PREFIX = get_path(pithos_services, 'pithos_object-store.prefix') |
22 | 25 |
PUBLIC_PREFIX = get_path(pithos_services, 'pithos_public.prefix') |
23 | 26 |
UI_PREFIX = get_path(pithos_services, 'pithos_ui.prefix') |
Also available in: Unified diff