mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Add ProxyFix() middleware component to fix the HTTPS redirection issue. See !17
This commit is contained in:
parent
990bbe5260
commit
df045cb2e5
@ -1,11 +1,14 @@
|
|||||||
|
from werkzeug.contrib.fixers import ProxyFix
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from flask.ext.login import LoginManager
|
from flask.ext.login import LoginManager
|
||||||
from flask.ext.sqlalchemy import SQLAlchemy
|
from flask.ext.sqlalchemy import SQLAlchemy
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object('config')
|
app.config.from_object('config')
|
||||||
|
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||||
|
|
||||||
login_manager = LoginManager()
|
login_manager = LoginManager()
|
||||||
login_manager.init_app(app)
|
login_manager.init_app(app)
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
|
|
||||||
from app import views, models
|
from app import views, models
|
||||||
|
Loading…
Reference in New Issue
Block a user