-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certificate Path when connecting to database via SSL #160
Comments
Ah lhci doesn't currently expose the manual certificate options if it's self-signed, sorry! That's a good feature request though 👍 |
Hi, any plans to expose SSL cert configuration for database connection? |
When upgrading my LHCI server from 0.3.7 to 0.4.1 and using
My Postgres DB requires SSL on all the connections. Adding Found this SO answer which advised to also require SSL on storage: {
storageMethod: 'sql',
sqlDialect: 'postgres',
sqlConnectionSsl: true,
sqlConnectionUrl: process.env.DB_CONN_URL,
sqlDialectOptions: {
ssl: {
require: true,
},
} After adding the above, my server worked fine. Do you want me to add this use case to the docs @patrickhulce ? It would seem that |
Hm, we didn't change anything in the SQL options between those versions that I'm aware of. Are you positive that you didn't update the postgres dependency at the same time? Happy to add this to the docs though once we figure out why the support change! |
Thanks Patrick, looking at the
Our cloud-based Postgres enforces SSL connections and that this was the only way I could get it to work. Thanks! |
Very odd that it would stop working then, perhaps it's a change in sequelize behavior in those versions? Either way happy to add what you found to the docs. Thanks for sharing! |
Hi, I am unable to connect to Postgres when I set
--storage.sqlConnectionSsl
to true.I am guessing (and I may be wrong here) that the solution is related to this stackoverflow answer
If that is the case, how do I specify the certificate path?
FWIW, The lighthouse server and Postgres is running on Azure.
The text was updated successfully, but these errors were encountered: