Skip to content

Commit

Permalink
fix: configurable pg config (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ferreiro Val authored Oct 15, 2020
1 parent ad1bfb4 commit d118711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@best/api-db/src/sql/postgres/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export default class PostgresDatabase extends SQLDatabase {
super()
this.pool = new Pool({
connectionString: config.uri,
ssl: {
rejectUnauthorized: false
}
ssl: config.ssl
})
}

Expand Down
1 change: 1 addition & 0 deletions packages/@best/types/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export interface Interruption {
export interface ApiDatabaseConfig {
adapter: string;
uri: string;
ssl?: any;
}

export interface FrontendConfig {
Expand Down

0 comments on commit d118711

Please sign in to comment.