We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba92213 + f666602 commit b6a7803Copy full SHA for b6a7803
app/__init__.py
@@ -6,6 +6,8 @@
6
from flask_sqlalchemy import SQLAlchemy
7
from flask_limiter import Limiter
8
from flask_limiter.util import get_remote_address
9
+from werkzeug.middleware.proxy_fix import ProxyFix
10
+from os import environ
11
12
from healthcheck import HealthCheck
13
# from healthcheck import EnvironmentDump
@@ -23,6 +25,8 @@
23
25
app.config.from_object(Config)
24
26
app.url_map.strict_slashes = False
27
28
+if environ['FLASK_ENV'] != 'development':
29
+ app = ProxyFix(app, x_for=1, x_host=1)
30
limiter = Limiter(
31
app,
32
key_func=get_remote_address,
0 commit comments