wsgi fix
This commit is contained in:
parent
6d61e7c41f
commit
657d5400f8
1 changed files with 3 additions and 1 deletions
|
@ -66,8 +66,10 @@ if not config.DEBUG:
|
|||
logging.getLogger('app.cors').level = logging.WARNING
|
||||
logging.getLogger('werkzeug').level = logging.WARNING
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||
|
||||
app.run(host=config.HTTP_ADDRESS,
|
||||
port=config.HTTP_PORT,
|
||||
debug=config.DEBUG, use_reloader=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue