We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d0081c commit 687c62bCopy full SHA for 687c62b
1 file changed
src/main.py
@@ -43,6 +43,7 @@ def create_app() -> Quart:
43
app.config["SQLALCHEMY_DATABASE_URI"] = f"postgresql+psycopg://{os.environ.get('DB_USERNAME')}:{parse.quote_plus(os.environ.get('DB_PASSWORD'))}@{app.config['DB_HOST']}/library"
44
app.config["POSTGRESQL_DATABASE_URI"] = f"postgresql://{os.environ.get('DB_USERNAME')}:{parse.quote_plus(os.environ.get('DB_PASSWORD'))}@{app.config['DB_HOST']}/library"
45
app.config["TEMPLATES_AUTO_RELOAD"] = True
46
+ app.config["WTF_CSRF_TIME_LIMIT"] = None # Max age in seconds for CSRF tokens. If set to None, the CSRF token is valid for the life of the session.
47
app.after_request(_add_secure_headers)
48
app.register_blueprint(home_blueprint, url_prefix="/")
49
app.register_blueprint(health_blueprint, url_prefix="/health")
0 commit comments