Skip to content

Commit 0b50d09

Browse files
committed
Populate Quart.config SECRETS from config
1 parent 5a863c5 commit 0b50d09

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def create_app() -> Quart:
4545
app.config["POSTGRESQL_DATABASE_URI"] = appconfig.POSTGRESQL_DATABASE_URI
4646
app.config["TEMPLATES_AUTO_RELOAD"] = True
4747
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.
48+
app.config["SECRET_KEY"] = appconfig.SECRET_KEY
49+
app.config["JWT_SECRET_KEY"] = appconfig.JWT_SECRET_KEY
4850
app.after_request(_add_secure_headers)
4951
app.register_blueprint(home_blueprint, url_prefix="/")
5052
app.register_blueprint(health_blueprint, url_prefix="/health")

0 commit comments

Comments
 (0)