Skip to content

Commit

Permalink
Merge pull request #259 from GSA/mmeyer/db-connect-ssl
Browse files Browse the repository at this point in the history
change db connection string to use ssl
  • Loading branch information
mark-meyer authored Jul 24, 2023
2 parents d2454a7 + ff21248 commit 09879e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# PostgreSQL URIs to use postgresql://
db_uri = settings.DB_URI.replace("postgres://", "postgresql://")

engine = create_engine(db_uri)
engine = create_engine(db_uri, connect_args={'sslmode': 'prefer'})

SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)

0 comments on commit 09879e7

Please sign in to comment.