Skip to content

Commit 944a29c

Browse files
authored
Merge pull request #385 from OperationCode/something
Fix problem with ProxyFix
2 parents b6a7803 + 7603382 commit 944a29c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
index = search_client.init_index(Config.INDEX_NAME)
2323

2424
app = Flask(__name__, static_folder='app/static')
25-
app.config.from_object(Config)
26-
app.url_map.strict_slashes = False
27-
2825
if environ['FLASK_ENV'] != 'development':
2926
app = ProxyFix(app, x_for=1, x_host=1)
3027
limiter = Limiter(
@@ -33,6 +30,9 @@
3330
default_limits=["200 per day", "50 per hour"]
3431
)
3532

33+
app.config.from_object(Config)
34+
app.url_map.strict_slashes = False
35+
3636
db.init_app(app)
3737
migrate.init_app(app, db)
3838

0 commit comments

Comments
 (0)