Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add env var support for read-replica database URL (#17743)

Technnik92c0a29408b9
diff --git a/saleor/settings.py b/saleor/settings.py
index be29d5a9ae..851afeab39 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -119,6 +119,7 @@ DATABASES = {
conn_max_age=DB_CONN_MAX_AGE,
),
DATABASE_CONNECTION_REPLICA_NAME: dj_database_url.config(
+ env="DATABASE_URL_REPLICA",
default="postgres://saleor:saleor@localhost:5432/saleor",
# TODO: We need to add read only user to saleor platform,
# and we need to update docs.