11 lines
280 B
Python
11 lines
280 B
Python
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||
|
import logging
|
||
|
|
||
|
from app import app
|
||
|
|
||
|
gunicorn_logger = logging.getLogger("gunicorn.error")
|
||
|
app.logger.handlers = gunicorn_logger.handlers
|
||
|
app.logger.setLevel(gunicorn_logger.level)
|
||
|
|
||
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1)
|