Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set pool recycle to avoid tcp timeout by the docker stack router
  • Loading branch information
greenape committed Apr 27, 2020
1 parent 42d9196 commit 99dac59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flowauth/backend/flowauth/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def get_config():
ADMIN_USER=environ["FLOWAUTH_ADMIN_USERNAME"],
ADMIN_PASSWORD=environ["FLOWAUTH_ADMIN_PASSWORD"],
SQLALCHEMY_DATABASE_URI=db_uri,
SQLALCHEMY_ENGINE_OPTIONS=dict(pool_recycle=3600),
SECRET_KEY=environ["SECRET_KEY"],
SESSION_PROTECTION="strong",
SQLALCHEMY_TRACK_MODIFICATIONS=False,
Expand Down

0 comments on commit 99dac59

Please sign in to comment.