Skip to content

Commit

Permalink
ID-893 Sam Read Replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
tlangs committed Oct 25, 2023
1 parent d18d97b commit d4b9c5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion env/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export OIDC_AUTHORITY_ENDPOINT="https://terradevb2c.b2clogin.com/terradevb2c.onm
export OPENCENSUS_SAMPLING_PROBABILITY=0
export OPENCENSUS_STACKDRIVER_ENABLED="false"
export POSTGRES_PASSWORD="sam-test"
export POSTGRES_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_READ_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_WRITE_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_USERNAME="sam-test"
export SAM_PEM_PATH="src/main/resources/rendered/sam-account.pem"
export SAM_SA_PATH="src/main/resources/rendered/sam-account.json"
Expand Down
3 changes: 2 additions & 1 deletion env/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export OIDC_AUTHORITY_ENDPOINT="https://terradevb2c.b2clogin.com/terradevb2c.onm
export OPENCENSUS_SAMPLING_PROBABILITY=0
export OPENCENSUS_STACKDRIVER_ENABLED="false"
export POSTGRES_PASSWORD="sam-test"
export POSTGRES_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_READ_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_WRITE_URL="jdbc:postgresql://localhost:5432/testdb"
export POSTGRES_USERNAME="sam-test"
export SAM_PEM_PATH="src/main/resources/rendered/sam-account.pem"
export SAM_SA_PATH="src/main/resources/rendered/sam-account.json"
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/sam.conf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ db {
poolMaxSize = 8
poolConnectionTimeoutMillis = 5000
driver = "org.postgresql.Driver"
url = ${?POSTGRES_URL}
url = ${?POSTGRES_READ_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand All @@ -145,7 +145,7 @@ db {
# Changes to this value should be reflected in liquibase.properties
driver = "org.postgresql.Driver"
# Changes to this value should be reflected in liquibase.properties
url = ${?POSTGRES_URL}
url = ${?POSTGRES_WRITE_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand All @@ -158,7 +158,7 @@ db {
poolMaxSize = 5
poolConnectionTimeoutMillis = 5000
driver = "org.postgresql.Driver"
url = ${?POSTGRES_URL}
url = ${?POSTGRES_WRITE_URL}
user = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
}
Expand Down

0 comments on commit d4b9c5b

Please sign in to comment.