-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(configurations): fix ssl configuration for postgres #282
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
Conversation
|
This pull request has been mentioned on Strapi Community Forum. There might be relevant details there: https://forum.strapi.io/t/help-with-s3-storage-and-cdn/4797/13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is actually wrong. The SSL option isn't used and the one removed either needs to be an object for that rejectUnauthorized (needed if SSL is self-signed) or it needs to be a boolean false if you want to disable SSL.
Yes I see, should we write two versions for this configuration since we can't set an object inside an ENV variable ? I'll do some test if it's possible to only let the rejectUnauthorized to false by default and the hosting don't throw us the SSL error |
You can, for that you use We do clarify in the settings:
|
So we should just keep the default ssl object : ssl: {
rejectUnauthorized: env.bool('DATABASE_SSL_SELF', false), // For self-signed certificates
},and add some details about the SSL server error because when we use the object knex consider the ssl options as true and we get the SSL server error ? |
|
Exactly |
I fixed the change you requested me. What are you thought on "How can we add some details about the SSL server error ?" ? |
We will need to add a notice in the documentation @pwizla thoughts? |
Thank you for the contribution @Stun3R and thank you for the explanations @derrickmehaffy 🙂 Indeed, I encourage you to add a
callout in which you can describe the SSL server issue and how it can be solved, in a few sentences. Thank you! |
You're welcome ! 😄 It looks like the |
Oh, I see! I ran into the same issue a few days ago 😄 You can use 5 colons to open and close the Like this: VuePress needs at least 3 colons to understand it's a custom container, but then you can have more, and the number of Hope this helps! 🙂 |
|
@Stun3R is attempting to deploy a commit to the Strapi Test US Team on Vercel. A member of the Team first needs to authorize it. |
Thanks it helps a lot! I did the change and add the warning alert 🥰 |
|
Awesome! 🤩 I'll let @derrickmehaffy give his thoughts :-) |
|
(looks fine to be btw) |
I clicked on the merge button too fast, sorry @derrickmehaffy! 😬 😅 |
What does it do?
It change the default configuration example for PostgreSQL database since it's wrong regarding SSL
Why is it needed?
Lot of people were in trouble trying to make strapi works with PostgreSQL on several Hosting platform (Qovery/Heroku...)
The default configuration was not right regarding the SSL configuration for knex
Related issue(s)/PR(s)
#281