##// END OF EJS Templates
added gzip middleware
marcink -
r702:a9158dfa beta
parent child Browse files
Show More
@@ -11,6 +11,7 b' from rhodecode.lib.middleware.simplehg i'
11 from rhodecode.lib.middleware.simplegit import SimpleGit
11 from rhodecode.lib.middleware.simplegit import SimpleGit
12 from rhodecode.lib.middleware.https_fixup import HttpsFixup
12 from rhodecode.lib.middleware.https_fixup import HttpsFixup
13 from rhodecode.config.environment import load_environment
13 from rhodecode.config.environment import load_environment
14 from paste.gzipper import make_gzip_middleware
14
15
15 def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
16 def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
16 """Create a Pylons WSGI application and return it
17 """Create a Pylons WSGI application and return it
@@ -67,6 +68,7 b' def make_app(global_conf, full_stack=Tru'
67 # Serve static files
68 # Serve static files
68 static_app = StaticURLParser(config['pylons.paths']['static_files'])
69 static_app = StaticURLParser(config['pylons.paths']['static_files'])
69 app = Cascade([static_app, app])
70 app = Cascade([static_app, app])
71 app = make_gzip_middleware(app, global_conf, compress_level=1)
70
72
71 app.config = config
73 app.config = config
72
74
General Comments 0
You need to be logged in to leave comments. Login now