Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 375709a

Browse files
may fix 500 error
might fix error when sqlalchemy's connection to the database times out
1 parent 8488461 commit 375709a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config.env.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
'post_logout_redirect_uris': [os.environ.get('QUOTEFAULT_OIDC_LOGOUT_REDIRECT_URI', 'https://quotefault.csh.rit.edu/logout')]
1818
}
1919

20+
# May fix SQLAlchemy losing connection to the database
21+
SQLALCHEMY_POOL_RECYCLE = 500
22+
2023
# CSH_LDAP credentials
2124
LDAP_BIND_DN = os.environ.get("LDAP_BIND_DN", default="cn=quotefault,ou=Apps,dc=csh,dc=rit,dc=edu")
2225
LDAP_BIND_PW = os.environ.get("LDAP_BIND_PW", default=None)

0 commit comments

Comments
 (0)