fixed nginx blocking
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
from flask import Flask
|
||||
from app.config import Config
|
||||
from app.extensions import db, mail, limiter
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
def create_app(config_class=Config):
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(config_class)
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1)
|
||||
|
||||
# Initialize extensions
|
||||
db.init_app(app)
|
||||
mail.init_app(app)
|
||||
|
||||
Reference in New Issue
Block a user