Skip to content

Commit

Permalink
♻️ chore: Make port configurable
Browse files Browse the repository at this point in the history
🐛 fix: Fix port env var
  • Loading branch information
Will Cory authored and Will Cory committed Sep 6, 2023
1 parent 19876d5 commit 1857d61
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions indexer/indexer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

[http]
host = "127.0.0.1"
Expand Down

0 comments on commit 1857d61

Please sign in to comment.