summaryrefslogtreecommitdiff
path: root/web_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'web_proxy.py')
-rw-r--r--web_proxy.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/web_proxy.py b/web_proxy.py
index ec5fd55..903c667 100644
--- a/web_proxy.py
+++ b/web_proxy.py
@@ -34,7 +34,8 @@ class ReverseProxied(object):
return self.app(environ, start_response)
from web import app
+app.debug = True
+app.wsgi_app = ReverseProxied(app.wsgi_app)
+
if __name__ == "__main__":
- app.debug = True
- app.wsgi_app = ReverseProxied(app.wsgi_app)
- app.run(host="0.0.0.0", port=8000)
+ app.run(host="0.0.0.0", port=8000)