Skip to content

Commit

Permalink
Merge pull request #273 from strideynet/kev-db-env
Browse files Browse the repository at this point in the history
Allow configuring postgres URI via env in prod
  • Loading branch information
strideynet authored Nov 15, 2024
2 parents b8a6474 + 349d2ac commit d01d4e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/bffsrv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,8 @@ func runE(log *zap.Logger) error {
var poolConnector store.PoolConnector
switch mode {
case productionMode:
poolConnector = &store.CloudSQLConnector{
Instance: "bsky-furry-feed:us-east1:main-us-east",
Database: "bff",
// TODO: Fetch this from an env var or from adc
Username: "849144245446-compute@developer",
poolConnector = &store.DirectConnector{
URI: os.Getenv("DB_URI"),
}
case feedDevMode:
poolConnector = &store.CloudSQLConnector{
Expand Down

0 comments on commit d01d4e3

Please sign in to comment.