Code Repositories xandikos / 66f6f95
Support ROUTE_PREFIX setting in uwsgi config. Jelmer Vernooń≥ 2 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2121
2222 import logging
2323 import os
24 import urllib.parse
2425
2526 from xandikos.web import XandikosBackend, XandikosApp
2627
4546 current_user_principal))
4647
4748 backend._mark_as_principal(current_user_principal)
48 app = XandikosApp(backend, current_user_principal)
49 current_user_principal_href = urllib.parse.urljoin(
50 os.environ.get('ROUTE_PREFIX', '/'), current_user_principal.lstrip('/'))
51 app = XandikosApp(backend, current_user_principal_href)