Skip to content

Commit

Permalink
Populate options from MLS_DB_CONNECTION_STRING too
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Normore committed Jan 23, 2024
1 parent 11ce2f7 commit 60ba6e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/xmtpd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func addEnvVars() {
options.Store.DbReaderConnectionString = connStr
}

if connStr, hasConnstr := os.LookupEnv("MLS_DB_CONNECTION_STRING"); hasConnstr {
options.MLSStore.DbConnectionString = connStr
}

if connStr, hasConnstr := os.LookupEnv("AUTHZ_DB_CONNECTION_STRING"); hasConnstr {
options.Authz.DbConnectionString = connStr
}
Expand Down

0 comments on commit 60ba6e5

Please sign in to comment.