Skip to content

Commit

Permalink
Added SSL configuration in PostgresConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Oct 18, 2024
1 parent 4671816 commit ec88299
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/masoniteorm/connections/PostgresConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def make_connection(self):
password=self.password,
host=self.host,
port=self.port,
options=f"-c search_path={schema}" if schema else "",
options=f"-c search_path={schema}" if schema else None,
sslmode=self.options.get("sslmode", "prefer"),
sslcert=self.options.get("sslcert"),
sslkey=self.options.get("sslkey"),
sslrootcert=self.options.get("sslrootcert"),
)

self._connection.autocommit = True
Expand Down

0 comments on commit ec88299

Please sign in to comment.