|
a/Allura/allura/config/middleware.py |
|
b/Allura/allura/config/middleware.py |
|
... |
|
... |
115 |
app = ew.WidgetMiddleware(
|
115 |
app = ew.WidgetMiddleware(
|
116 |
app,
|
116 |
app,
|
117 |
compress=not asbool(global_conf['debug']),
|
117 |
compress=not asbool(global_conf['debug']),
|
118 |
# compress=True,
|
118 |
# compress=True,
|
119 |
script_name=app_conf.get('ew.script_name', '/_ew_resources/'),
|
119 |
script_name=app_conf.get('ew.script_name', '/_ew_resources/'),
|
120 |
url_base=app_conf.get('ew.url_base', '/_ew_resources/'))
|
120 |
url_base=app_conf.get('ew.url_base', '/_ew_resources/'),
|
|
|
121 |
extra_headers=eval(app_conf.get('ew.extra_headers', 'None')))
|
121 |
# Make sure that the wsgi.scheme is set appropriately when we
|
122 |
# Make sure that the wsgi.scheme is set appropriately when we
|
122 |
# have the funky HTTP_X_SFINC_SSL environ var
|
123 |
# have the funky HTTP_X_SFINC_SSL environ var
|
123 |
if asbool(app_conf.get('auth.method', 'local')=='sfx'):
|
124 |
if asbool(app_conf.get('auth.method', 'local')=='sfx'):
|
124 |
app = set_scheme_middleware(app)
|
125 |
app = set_scheme_middleware(app)
|
125 |
# Handle static files (by tool)
|
126 |
# Handle static files (by tool)
|