Skip to content
Snippets Groups Projects
Commit ccae5ebe authored by kaiyou's avatar kaiyou
Browse files

Add the proxyfix wsgi hook

parent 667c88aa
No related branches found
No related tags found
No related merge requests found
import flask
from werkzeug.contrib import fixers
from hiboo import models, configuration, debug, utils
......@@ -7,6 +8,7 @@ def create_app_from_config(config):
""" Create a new application based on the given configuration
"""
app = flask.Flask(__name__)
app.wsgi_app = fixers.ProxyFix(app.wsgi_app)
# Initialize application extensions
config.init_app(app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment