|
|
@ -29,6 +29,10 @@ def create_app(): |
|
|
|
raise Exception("Internal error: insecure secret key") |
|
|
|
raise Exception("Internal error: insecure secret key") |
|
|
|
app.secret_key = secret_key |
|
|
|
app.secret_key = secret_key |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if app.config['BEHIND_REVERSE_PROXY']: |
|
|
|
|
|
|
|
from werkzeug.middleware.proxy_fix import ProxyFix |
|
|
|
|
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app) |
|
|
|
|
|
|
|
|
|
|
|
from api import api_document |
|
|
|
from api import api_document |
|
|
|
app.register_blueprint(api_document.bp) |
|
|
|
app.register_blueprint(api_document.bp) |
|
|
|
|
|
|
|
|
|
|
|