From 0719f044da6fa1877b63576fbbfa56f526f31e7b Mon Sep 17 00:00:00 2001 From: Will Cory Date: Thu, 31 Aug 2023 19:55:43 -0700 Subject: [PATCH] :recycle: chore: Make port configurable :bug: fix: Fix port env var --- indexer/indexer.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/indexer/indexer.toml b/indexer/indexer.toml index a3bc5d7e90f5b..e1f5f8a39cfbd 100644 --- a/indexer/indexer.toml +++ b/indexer/indexer.toml @@ -22,11 +22,15 @@ l1-rpc = "${INDEXER_RPC_URL_L1}" l2-rpc = "${INDEXER_RPC_URL_L2}" [db] -host = "postgres" -port = 5432 -user = "db_username" -password = "db_password" -name = "db_name" +host = "$INDEXER_DB_HOST" +# this port may be problematic once we depoly +# the DATABASE_URL looks like this for previous services and didn't include a port +# DATABASE_URL="postgresql://${INDEXER_DB_USER}:${INDEXER_DB_PASS}@localhost/${INDEXER_DB_NAME}?host=${INDEXER_DB_HOST}" +# If not problematic delete these comments +port = $INDEXER_DB_PORT +user = "$INDEXER_DB_USER" +password = "$INDEXER_DB_PASS" +name = "$INDEXER_DB_NAME" [api] host = "127.0.0.1"