@@ -9,7 +9,7 @@ server { | |||
location / { | |||
proxy_pass http://toolkit; | |||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |||
proxy_set_header Host $host; | |||
proxy_set_header Host $http_host; | |||
proxy_redirect off; | |||
} | |||
@@ -26,7 +26,8 @@ def create_app(): | |||
# get config variables from OS environment variables: set in env file passed through Docker Compose | |||
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY') | |||
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL') | |||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = 'False' | |||
app.config['SQLALCHEMY_ECHO'] = False | |||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False | |||
db.init_app(app) | |||
@@ -3,3 +3,4 @@ flask-sqlalchemy | |||
flask-login | |||
flask-moment | |||
gunicorn | |||
pymysql |