|
|
@ -31,7 +31,7 @@ def create_app(): |
|
|
|
|
|
|
|
|
|
|
|
if app.config['BEHIND_REVERSE_PROXY']: |
|
|
|
if app.config['BEHIND_REVERSE_PROXY']: |
|
|
|
from werkzeug.middleware.proxy_fix import ProxyFix |
|
|
|
from werkzeug.middleware.proxy_fix import ProxyFix |
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app) |
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1) |
|
|
|
|
|
|
|
|
|
|
|
from api import api_document |
|
|
|
from api import api_document |
|
|
|
app.register_blueprint(api_document.bp) |
|
|
|
app.register_blueprint(api_document.bp) |
|
|
|