from proxy import CachingS3Proxy

def application(environ, start_response):
    p = CachingS3Proxy()
    return p.proxy_s3_bucket(environ, start_response)

@@ -1,8 +1,34 @@
+import os%0Aimport tempfile%0A
 from pro
@@ -103,27 +103,171 @@
     
-p = CachingS3Proxy(
+capacity = int(os.environ.get('CAPACITY', 1000000000))%0A    cache_dir = os.environ.get('CACHEDIR', tempfile.gettempdir())%0A    p = CachingS3Proxy(capacity, cache_dir
 )%0A  

make wsgi app honor vars too